Skip to content

Commit ad12079

Browse files
authored
Podfile and CI fixes (#120)
* Use 1.14.3 pod version specifically * Skip all caches if manually re executing CI --------- Co-authored-by: Evan Masseau <>
1 parent bd5bd20 commit ad12079

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

Diff for: .github/actions/setup/action.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ runs:
1212
- name: Cache dependencies
1313
id: yarn-cache
1414
uses: actions/cache@v4
15+
if: github.run_attempt == 1
1516
with:
1617
path: |
1718
**/node_modules
@@ -22,6 +23,6 @@ runs:
2223
${{ runner.os }}-yarn-
2324
2425
- 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'
2627
run: yarn install --immutable
2728
shell: bash

Diff for: .github/workflows/android-ci.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
${{ runner.os }}-turborepo-android-
3333
3434
- name: Check turborepo cache for Android
35+
if: github.run_attempt == 1
3536
run: |
3637
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")
3738
@@ -40,19 +41,19 @@ jobs:
4041
fi
4142
4243
- name: Install JDK
43-
if: env.turbo_cache_hit != 1 || ${{ github.run_attempt > 1 }}
44+
if: env.turbo_cache_hit != 1
4445
uses: actions/setup-java@v4
4546
with:
4647
distribution: 'zulu'
4748
java-version: '17'
4849

4950
- name: Finalize Android SDK
50-
if: env.turbo_cache_hit != 1 || ${{ github.run_attempt > 1 }}
51+
if: env.turbo_cache_hit != 1
5152
run: |
5253
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
5354
5455
- name: Cache Gradle
55-
if: env.turbo_cache_hit != 1 || ${{ github.run_attempt > 1 }}
56+
if: env.turbo_cache_hit != 1
5657
uses: actions/cache@v4
5758
with:
5859
path: |

Diff for: .github/workflows/ios-ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
${{ runner.os }}-turborepo-ios-
3838
3939
- name: Check turborepo cache for iOS
40+
if: github.run_attempt == 1
4041
run: |
4142
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")
4243
@@ -45,7 +46,7 @@ jobs:
4546
fi
4647
4748
- name: Cache cocoapods
48-
if: env.turbo_cache_hit != 1
49+
if: env.turbo_cache_hit != 1 && github.run_attempt == 1
4950
id: cocoapods-cache
5051
uses: actions/cache@v4
5152
with:

Diff for: example/ios/Podfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1383,4 +1383,4 @@ SPEC CHECKSUMS:
13831383

13841384
PODFILE CHECKSUM: 4b9faf5e512fab6e8d87beb30570ec4d3bd884b9
13851385

1386-
COCOAPODS: 1.15.2
1386+
COCOAPODS: 1.14.3

0 commit comments

Comments
 (0)