Skip to content

Commit

Permalink
Use c2cs version for native library cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lithiumtoast committed Aug 6, 2023
1 parent d06e260 commit 4f8bded
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@ jobs:
shell: bash
run: dotnet tool install --global bottlenoselabs.C2CS.Tool

- name: "Get C2CS version"
shell: bash
run: echo "C2CS_VERSION=${c2cs --version}" >> $GITHUB_ENV

- name: "Cache native libraries"
id: cache-libs
uses: actions/cache@v3
with:
path: "./lib"
key: "libs-${{ matrix.platform.rid }}-${{ hashFiles('ext/sokol/**/*') }}-${{ hashFiles('src/c/**/*') }}-${{ hashFiles('bindgen/**/*') }}-$(c2cs --version)"
key: "libs-${{ matrix.platform.rid }}-${{ hashFiles('ext/sokol/**/*') }}-${{ hashFiles('src/c/**/*') }}-${{ hashFiles('bindgen/**/*') }}-$C2CS_VERSION"

- name: "Install Windows dependencies"
if: runner.os == 'Windows' && steps.cache-libs.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 4f8bded

Please sign in to comment.