Skip to content

Commit

Permalink
ci: update cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
homuler committed Aug 13, 2023
1 parent 66df94a commit 57a08f7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linux-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/cache@v3
with:
path: "~/.cache/bazel"
key: bazel-${{ runner.os }}-v1-${{ hashFiles('WORKSPACE') }}
key: bazel-ubuntu-20.04-v1-${{ hashFiles('WORKSPACE') }}

# Cache native libraries
- name: Concat native library source files
Expand All @@ -36,7 +36,7 @@ jobs:
uses: actions/cache@v3
with:
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/libmediapipe_c.so
key: native-libs-${{ runner.os }}-v1-${{ hashFiles('cache_key.txt') }}
key: native-libs-ubuntu-20.04-v1-${{ hashFiles('cache_key.txt') }}

- name: Remove cache_key.txt
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/macos-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/cache@v3
with:
path: /private/var/tmp/_bazel_runner
key: bazel-${{ runner.os }}-v1-${{ hashFiles('WORKSPACE') }}
key: bazel-macos-11-v1-${{ hashFiles('WORKSPACE') }}

# Cache native libraries
- name: Concat native library source files
Expand All @@ -36,7 +36,7 @@ jobs:
uses: actions/cache@v3
with:
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/libmediapipe_c.dylib
key: native-libs-${{ runner.os }}-v1-${{ hashFiles('cache_key.txt') }}
key: native-libs-macos-11-v1-${{ hashFiles('cache_key.txt') }}

- name: Remove cache_key.txt
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions/cache@v3
with:
path: Packages/com.github.homuler.mediapipe/Runtime/Plugins/libmediapipe_c.dll
key: native-libs-${{ runner.os }}-v1-${{ hashFiles('cache_key.txt') }}
key: native-libs-windows-2019-v1-${{ hashFiles('cache_key.txt') }}

- name: Remove cache_key.txt
run: |
Expand Down

0 comments on commit 57a08f7

Please sign in to comment.