1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Checkout
18- uses : actions/checkout@v3
18+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919
2020 - name : Setup
2121 uses : ./.github/actions/setup
3030 runs-on : ubuntu-latest
3131 steps :
3232 - name : Checkout
33- uses : actions/checkout@v3
33+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3434
3535 - name : Setup
3636 uses : ./.github/actions/setup
4242 runs-on : ubuntu-latest
4343 steps :
4444 - name : Checkout
45- uses : actions/checkout@v3
45+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4646
4747 - name : Setup
4848 uses : ./.github/actions/setup
@@ -56,13 +56,16 @@ jobs:
5656 TURBO_CACHE_DIR : .turbo/android
5757 steps :
5858 - name : Checkout
59- uses : actions/checkout@v3
59+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6060
6161 - name : Setup
6262 uses : ./.github/actions/setup
6363
64+ - name : Generate nitrogen code
65+ run : yarn nitrogen
66+
6467 - name : Cache turborepo for Android
65- uses : actions/cache@v3
68+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
6669 with :
6770 path : ${{ env.TURBO_CACHE_DIR }}
6871 key : ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
7982
8083 - name : Install JDK
8184 if : env.turbo_cache_hit != 1
82- uses : actions/setup-java@v3
85+ uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
8386 with :
8487 distribution : ' zulu'
8588 java-version : ' 17'
9194
9295 - name : Cache Gradle
9396 if : env.turbo_cache_hit != 1
94- uses : actions/cache@v3
97+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
9598 with :
9699 path : |
97100 ~/.gradle/wrapper
@@ -107,18 +110,22 @@ jobs:
107110 yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
108111
109112 build-ios :
110- runs-on : macos-14
113+ runs-on : macos-latest
111114 env :
115+ XCODE_VERSION : 16.2
112116 TURBO_CACHE_DIR : .turbo/ios
113117 steps :
114118 - name : Checkout
115- uses : actions/checkout@v3
119+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
116120
117121 - name : Setup
118122 uses : ./.github/actions/setup
119123
124+ - name : Generate nitrogen code
125+ run : yarn nitrogen
126+
120127 - name : Cache turborepo for iOS
121- uses : actions/cache@v3
128+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
122129 with :
123130 path : ${{ env.TURBO_CACHE_DIR }}
124131 key : ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
@@ -133,24 +140,19 @@ jobs:
133140 echo "turbo_cache_hit=1" >> $GITHUB_ENV
134141 fi
135142
136- - name : Cache cocoapods
143+ - name : Use appropriate Xcode version
137144 if : env.turbo_cache_hit != 1
138- id : cocoapods-cache
139- uses : actions/cache@v3
145+ uses : maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
140146 with :
141- path : |
142- **/ios/Pods
143- key : ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
144- restore-keys : |
145- ${{ runner.os }}-cocoapods-
147+ xcode-version : ${{ env.XCODE_VERSION }}
146148
147149 - name : Install cocoapods
148150 if : env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
149151 run : |
150- cd example/ios
151- pod install
152- env :
153- NO_FLIPPER : 1
152+ cd example
153+ bundle install
154+ bundle exec pod repo update --verbose
155+ bundle exec pod install --project-directory=ios
154156
155157 - name : Build example for iOS
156158 run : |
0 commit comments