Skip to content

Commit

Permalink
chore(ci): Cache FFI artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
adamrodger committed Feb 15, 2024
1 parent 38f850f commit 4c207ca
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,20 @@ jobs:
with:
dotnet-version: "8.0.x" # runners already have .Net Framework installed as well

- name: Cache FFI dependencies
id: cache
uses: actions/cache@v3
with:
key: cache-ffi-${{ hashFiles('build/download-native-libs.sh') }}
enableCrossOsArchive: true
path: |
build/linux
build/osx
build/windows
- name: Pull interop dependencies
run: bash -c "build/download-native-libs.sh"
if: ${{ steps.cache.outputs.cache-hit != 'true' }}

- name: Restore
run: dotnet restore
Expand Down

0 comments on commit 4c207ca

Please sign in to comment.