Skip to content

Commit bfdb7eb

Browse files
committed
fix: ci
1 parent 0637fe0 commit bfdb7eb

1 file changed

Lines changed: 30 additions & 28 deletions

File tree

.github/workflows/ci.yml

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -116,36 +116,39 @@ jobs:
116116

117117
- name: Setup
118118
uses: ./.github/actions/setup
119+
120+
- name: Build package
121+
run: yarn prepare
119122

120-
- name: Cache turborepo for iOS
121-
uses: actions/cache@v3
122-
with:
123-
path: ${{ env.TURBO_CACHE_DIR }}
124-
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
125-
restore-keys: |
126-
${{ runner.os }}-turborepo-ios-
127-
128-
- name: Check turborepo cache for iOS
129-
run: |
130-
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")
131-
132-
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
133-
echo "turbo_cache_hit=1" >> $GITHUB_ENV
134-
fi
135-
136-
- name: Cache cocoapods
137-
if: env.turbo_cache_hit != 1
138-
id: cocoapods-cache
139-
uses: actions/cache@v3
140-
with:
141-
path: |
142-
**/ios/Pods
143-
key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
144-
restore-keys: |
145-
${{ runner.os }}-cocoapods-
123+
# - name: Cache turborepo for iOS
124+
# uses: actions/cache@v3
125+
# with:
126+
# path: ${{ env.TURBO_CACHE_DIR }}
127+
# key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
128+
# restore-keys: |
129+
# ${{ runner.os }}-turborepo-ios-
130+
131+
# - name: Check turborepo cache for iOS
132+
# run: |
133+
# 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")
134+
135+
# if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
136+
# echo "turbo_cache_hit=1" >> $GITHUB_ENV
137+
# fi
138+
139+
# - name: Cache cocoapods
140+
# if: env.turbo_cache_hit != 1
141+
# id: cocoapods-cache
142+
# uses: actions/cache@v3
143+
# with:
144+
# path: |
145+
# **/ios/Pods
146+
# key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}
147+
# restore-keys: |
148+
# ${{ runner.os }}-cocoapods-
146149

147150
- name: Install cocoapods
148-
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
151+
# if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
149152
run: |
150153
cd example/ios
151154
rm -rf ./Pods
@@ -155,5 +158,4 @@ jobs:
155158

156159
- name: Build example for iOS
157160
run: |
158-
yarn prepare
159161
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"

0 commit comments

Comments
 (0)