diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..d53751b Binary files /dev/null and b/.DS_Store differ diff --git a/.gitea/.DS_Store b/.gitea/.DS_Store new file mode 100644 index 0000000..fb34ebd Binary files /dev/null and b/.gitea/.DS_Store differ diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 159bc3d..6551a59 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -4,26 +4,19 @@ 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' + dotnet-version: '9.0.x' - run: dotnet restore - - run: dotnet build - - run: dotnet test - - run: dotnet publish -o app -r linux-x64 --sc /p:PublishSingleFile=true - - run: tar cf app.tar app/ - - uses: actions/upload-artifact@v3 + - run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true + + - name: Archive artifacts for ${{ matrix.rid }} + uses: actions/upload-artifact@v3 with: - name: app.tar - path: app.tar - test: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/download-artifact@v3 - with: - name: app.tar - - run: tar xf app.tar - - run: ./app/Lab7 + name: app-${{ matrix.rid }} + path: app \ No newline at end of file