Skip to content

Commit d1ae970

Browse files
committed
Cache Hermes build directory
1 parent db31ec6 commit d1ae970

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/check.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ jobs:
7575
- run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi i686-linux-android aarch64-apple-ios-sim
7676
- run: npm ci
7777
- run: npm run bootstrap
78+
- name: Clone patched Hermes version
79+
shell: bash
80+
run: |
81+
REACT_NATIVE_OVERRIDE_HERMES_DIR=$(npx react-native-node-api vendor-hermes --silent)
82+
echo "REACT_NATIVE_OVERRIDE_HERMES_DIR=$REACT_NATIVE_OVERRIDE_HERMES_DIR" >> $GITHUB_ENV
83+
working-directory: apps/test-app
84+
- name: Setup Hermes cache
85+
uses: actions/cache@v4
86+
id: hermes-cache
87+
with:
88+
path: ${{ env.REACT_NATIVE_OVERRIDE_HERMES_DIR }}
89+
key: ${{ runner.os }}-hermes
7890
- run: npm run pod-install
7991
working-directory: apps/test-app
8092
- name: Run tests (iOS)
@@ -109,6 +121,12 @@ jobs:
109121
REACT_NATIVE_OVERRIDE_HERMES_DIR=$(npx react-native-node-api vendor-hermes --silent)
110122
echo "REACT_NATIVE_OVERRIDE_HERMES_DIR=$REACT_NATIVE_OVERRIDE_HERMES_DIR" >> $GITHUB_ENV
111123
working-directory: apps/test-app
124+
- name: Setup Hermes cache
125+
uses: actions/cache@v4
126+
id: hermes-cache
127+
with:
128+
path: ${{ env.REACT_NATIVE_OVERRIDE_HERMES_DIR }}
129+
key: ${{ runner.os }}-hermes
112130
# - name: Setup Android Emulator cache
113131
# uses: actions/cache@v4
114132
# id: avd-cache

0 commit comments

Comments
 (0)