name: SharpCompress on: push: branches: - 'master' pull_request: types: [ opened, synchronize, reopened, ready_for_review ] jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [windows-latest, ubuntu-latest] steps: - uses: actions/checkout@v4 - uses: actions/setup-dotnet@v3 with: dotnet-version: 7.0.x - name: NuGet Caching uses: actions/cache@v3 with: path: ~/.nuget/packages key: ${{ runner.os }}-nuget-${{ hashFiles('packages.lock.json', '*/packages.lock.json') }} restore-keys: | ${{ runner.os }}-nuget- - run: dotnet run --project build/build.csproj - uses: actions/upload-artifact@v3 with: name: ${{ matrix.os }}-sharpcompress.nupkg path: artifacts/*