Moves zlib to its own nuget (#164)

This commit is contained in:
Kamron Batman 2020-06-25 13:48:40 -07:00 committed by GitHub
parent 561b40c3d8
commit d76d60d900
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 75 additions and 398 deletions

View file

@ -32,29 +32,12 @@ jobs:
with:
path: |
~/.nuget/packages
!~/.nuget/packages/zlib.bindings
${{ github.workspace }}/Projects/*/obj/project.assets.json
${{ github.workspace }}/Projects/*/obj/project.nuget.cache
${{ github.workspace }}/Projects/*/obj/*.csproj.nuget.*
key: ${{ matrix.os }}-nuget-cache-v6-${{ hashFiles('**/packages.lock.json') }}
key: ${{ matrix.os }}-nuget-cache-v7-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ matrix.os }}-nuget-cache-v3
- name: ZLib Library Cache
id: zlib-cache
uses: actions/cache@v2
with:
path: |
~/.nuget/packages/zlib.bindings
${{ github.workspace }}/Projects/ZLib/**
${{ github.workspace }}/packages/ZLib.Bindings*.nupkg
key: ${{ matrix.os }}-zlib-cache-v6-${{ hashFiles('Projects/ZLib/*') }}
restore-keys: |
${{ matrix.os }}-zlib-cache-v4
- name: Build ZLib
run: dotnet build -c Release Projects/ZLib/ZLib.csproj
- name: Pack ZLib NuGet
if: steps.zlib-cache.outputs.cache-hit != 'true'
run: dotnet pack -c Release -o packages Projects/ZLib/ZLib.csproj
${{ matrix.os }}-nuget-cache-v7
- name: Restore dependencies
if: steps.nuget-cache.outputs.cache-hit != 'true' || steps.zlib-cache.outputs.cache-hit != 'true'
run: dotnet restore --force-evaluate