Skip to content

Commit ebbfd7d

Browse files
committed
fix(ci): invalidate turbo cache on submodule changes and track Android .so outputs
1 parent 5110f63 commit ebbfd7d

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
7777
with:
7878
path: ${{ env.TURBO_CACHE_DIR }}
79-
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
79+
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock', 'turbo.json', '.gitmodules') }}
8080
restore-keys: |
8181
${{ runner.os }}-turborepo-android-
8282
@@ -140,7 +140,7 @@ jobs:
140140
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
141141
with:
142142
path: ${{ env.TURBO_CACHE_DIR }}
143-
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
143+
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock', 'turbo.json', '.gitmodules') }}
144144
restore-keys: |
145145
${{ runner.os }}-turborepo-ios-
146146

turbo.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"env": ["ANDROID_HOME", "ORG_GRADLE_PROJECT_newArchEnabled"],
88
"inputs": [
99
"package.json",
10+
".gitmodules",
11+
"third_party/**",
1012
"android",
1113
"!android/build",
1214
"src/*.ts",
@@ -17,7 +19,11 @@
1719
"!example/android/build",
1820
"!example/android/app/build"
1921
],
20-
"outputs": []
22+
"outputs": [
23+
"android/build/**/libfilehash-native.so",
24+
"example/android/build/**/libfilehash-native.so",
25+
"example/android/app/build/**/libfilehash-native.so"
26+
]
2127
},
2228
"build:ios": {
2329
"env": [
@@ -27,6 +33,8 @@
2733
],
2834
"inputs": [
2935
"package.json",
36+
".gitmodules",
37+
"third_party/**",
3038
"*.podspec",
3139
"ios",
3240
"src/*.ts",

0 commit comments

Comments
 (0)