Skip to content

Commit c778ac3

Browse files
Working on the artifact for iOS v2
1 parent 07dd54a commit c778ac3

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

.github/workflows/codeql.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -162,52 +162,52 @@ jobs:
162162
runs-on: macos-14
163163
env:
164164
TURBO_CACHE_DIR: .turbo/ios
165-
steps:
166-
- name: Checkout
167-
uses: actions/checkout@v3
165+
steps:
166+
- name: Checkout
167+
uses: actions/checkout@v3
168168

169-
- name: Setup
170-
uses: ./.github/actions/setup
169+
- name: Setup
170+
uses: ./.github/actions/setup
171171

172-
- name: Cache turborepo for iOS
173-
uses: actions/cache@v3
174-
with:
175-
path: ${{ env.TURBO_CACHE_DIR }}
176-
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
177-
restore-keys: |
172+
- name: Cache turborepo for iOS
173+
uses: actions/cache@v3
174+
with:
175+
path: ${{ env.TURBO_CACHE_DIR }}
176+
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
177+
restore-keys: |
178178
${{ runner.os }}-turborepo-ios-
179179
180-
- name: Check turborepo cache for iOS
181-
run: |
182-
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")
180+
- name: Check turborepo cache for iOS
181+
run: |
182+
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")
183183
184-
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
185-
echo "turbo_cache_hit=1" >> $GITHUB_ENV
186-
fi
184+
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
185+
echo "turbo_cache_hit=1" >> $GITHUB_ENV
186+
fi
187187
188-
- name: Cache cocoapods
189-
if: env.turbo_cache_hit != 1
190-
id: cocoapods-cache
191-
uses: actions/cache@v3
192-
with:
193-
path: |
194-
**/ios/Pods
195-
key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
196-
restore-keys: |
197-
${{ runner.os }}-cocoapods-
198-
199-
- name: Install cocoapods
200-
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
201-
run: |
202-
cd example/ios
203-
pod install
204-
env:
205-
NO_FLIPPER: 1
188+
- name: Cache cocoapods
189+
if: env.turbo_cache_hit != 1
190+
id: cocoapods-cache
191+
uses: actions/cache@v3
192+
with:
193+
path: |
194+
**/ios/Pods
195+
key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
196+
restore-keys: |
197+
${{ runner.os }}-cocoapods-
198+
199+
- name: Install cocoapods
200+
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
201+
run: |
202+
cd example/ios
203+
pod install
204+
env:
205+
NO_FLIPPER: 1
206206

207-
- name: Build example for iOS
208-
run: |
209-
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
210-
echo "${{ env.TURBO_CACHE_DIR }}"
207+
- name: Build example for iOS
208+
run: |
209+
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
210+
echo "${{ env.TURBO_CACHE_DIR }}"
211211

212212

213213
# - name: 'Upload Artifact'

0 commit comments

Comments
 (0)