From 58760edc560893773e7dfc7f49f6abe86febbd1b Mon Sep 17 00:00:00 2001 From: Jarko0 Date: Fri, 21 Nov 2025 12:21:18 +0100 Subject: [PATCH] macierze --- .gitea/workflows/ci.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index cc7f3e5..42bd018 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -4,27 +4,31 @@ on: [push] jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + rid: ["win-x64", "linux-x64"] steps: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v3 with: dotnet-version: '8.0.x' - run: dotnet restore - - run: dotnet build - - run: dotnet test - - run: dotnet publish -o app -r linux-x64 --sc /p:PublishSingleFile=true,AssemblyName=app - - run: tar cf app.tar app/ + - run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true + - name: Package artifact + run: tar cf app-${{ matrix.rid }}.tar app/ - uses: actions/upload-artifact@v3 with: - name: app.tar - path: app.tar - - test: + name: app-${{ matrix.rid }} + path: app-${{ matrix.rid }}.tar + test: needs: build runs-on: ubuntu-latest + strategy: + matrix: + rid: ["win-x64", "linux-x64"] steps: - uses: actions/download-artifact@v3 with: - name: app.tar - - run: tar xf app.tar + name: app-${{ matrix.rid }} + - run: tar xf app-${{ matrix.rid }}.tar - run: ./app/app