Moves zlib to its own nuget (#164)
This commit is contained in:
parent
561b40c3d8
commit
d76d60d900
23 changed files with 75 additions and 398 deletions
21
.github/workflows/dotnet-core.yml
vendored
21
.github/workflows/dotnet-core.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue