Skip to content

Commit 5f7dcfd

Browse files
committed
ci: switch to using cache for jniLibs in test-e2e job
1 parent 0be5e5b commit 5f7dcfd

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,16 @@ jobs:
304304
with:
305305
submodules: 'recursive'
306306

307-
- name: Download JNI libs
308-
uses: actions/download-artifact@v3
307+
# Restores jniLibs from cache
308+
# `actions/cache/restore` only restores, without saving back in a post-hook
309+
- uses: actions/cache/restore@v3
310+
id: cache-jniLibs
311+
env:
312+
cache-name: jniLibs
309313
with:
310-
name: jniLibs
311-
path: mobile/src/main/jniLibs
314+
path: mobile/src/main/jniLibs/
315+
key: ${{ env.cache-name }}-release-${{ env.RELEASE }}-ndk-${{ env.NDK_VERSION }}-${{ hashFiles('.git/modules/aw-server-rust/HEAD') }}
316+
fail-on-cache-miss: true
312317

313318
- name: Display structure of downloaded files
314319
run: |

0 commit comments

Comments
 (0)