File tree 4 files changed +9
-6
lines changed
4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 12
12
- name : Cache dependencies
13
13
id : yarn-cache
14
14
uses : actions/cache@v4
15
+ if : github.run_attempt == 1
15
16
with :
16
17
path : |
17
18
**/node_modules
22
23
${{ runner.os }}-yarn-
23
24
24
25
- name : Install dependencies
25
- if : steps.yarn-cache.outputs.cache-hit != 'true' || ${{ github.run_attempt > 1 }}
26
+ if : steps.yarn-cache.outputs.cache-hit != 'true'
26
27
run : yarn install --immutable
27
28
shell : bash
Original file line number Diff line number Diff line change 32
32
${{ runner.os }}-turborepo-android-
33
33
34
34
- name : Check turborepo cache for Android
35
+ if : github.run_attempt == 1
35
36
run : |
36
37
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android').cache.status")
37
38
@@ -40,19 +41,19 @@ jobs:
40
41
fi
41
42
42
43
- name : Install JDK
43
- if : env.turbo_cache_hit != 1 || ${{ github.run_attempt > 1 }}
44
+ if : env.turbo_cache_hit != 1
44
45
uses : actions/setup-java@v4
45
46
with :
46
47
distribution : ' zulu'
47
48
java-version : ' 17'
48
49
49
50
- name : Finalize Android SDK
50
- if : env.turbo_cache_hit != 1 || ${{ github.run_attempt > 1 }}
51
+ if : env.turbo_cache_hit != 1
51
52
run : |
52
53
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
53
54
54
55
- name : Cache Gradle
55
- if : env.turbo_cache_hit != 1 || ${{ github.run_attempt > 1 }}
56
+ if : env.turbo_cache_hit != 1
56
57
uses : actions/cache@v4
57
58
with :
58
59
path : |
Original file line number Diff line number Diff line change 37
37
${{ runner.os }}-turborepo-ios-
38
38
39
39
- name : Check turborepo cache for iOS
40
+ if : github.run_attempt == 1
40
41
run : |
41
42
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios').cache.status")
42
43
45
46
fi
46
47
47
48
- name : Cache cocoapods
48
- if : env.turbo_cache_hit != 1
49
+ if : env.turbo_cache_hit != 1 && github.run_attempt == 1
49
50
id : cocoapods-cache
50
51
uses : actions/cache@v4
51
52
with :
Original file line number Diff line number Diff line change @@ -1383,4 +1383,4 @@ SPEC CHECKSUMS:
1383
1383
1384
1384
PODFILE CHECKSUM: 4b9faf5e512fab6e8d87beb30570ec4d3bd884b9
1385
1385
1386
- COCOAPODS: 1.15.2
1386
+ COCOAPODS: 1.14.3
You can’t perform that action at this time.
0 commit comments