name: First CI on: [push] jobs: build: runs-on: ubuntu-latest strategy: matrix: rid: ["win-x64", "linux-x64"] steps: - name: Checkout uses: actions/checkout@v4 - uses: actions/setup-dotnet@v3 with: dotnet-version: '8.0.x' - run: dotnet restore - run: dotnet build --configuration Release - run: dotnet publish -c Release -o app-${{ matrix.rid }} -r ${{ matrix.rid }} /p:PublishSingleFile=true --self-contained true - if: runner.os == 'Linux' run: chmod -R +x app-${{ matrix.rid }} || true - uses: actions/upload-artifact@v3 with: name: app-${{ matrix.rid }} path: app-${{ matrix.rid }}