Merge pull request #785 from Erior/feature/Issue-782 #430
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |