From e9e1d15cc065e4d78cd0a229ecdf9e2ec211bbe4 Mon Sep 17 00:00:00 2001 From: kejdzej Date: Thu, 20 Nov 2025 15:48:25 +0100 Subject: [PATCH] ci.yml zad5 --- .gitea/workflows/ci.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index eb537bf..8ae6432 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,9 +1,13 @@ name: First CI + on: [push] jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + rid: ["win-x64", "linux-x64"] steps: - uses: actions/checkout@v4 @@ -12,20 +16,4 @@ jobs: 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/ - - uses: actions/upload-artifact@v3 - with: - name: app.tar - path: app.tar - - test: - steps: - - uses: actions/download-artifact@v3 - with: - name: app.tar - - - run: tar xf app.tar - - run: ./app/app + - run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true