Skip to content

Commit 7cb35d5

Browse files
committed
Update package.json
1 parent e585eec commit 7cb35d5

File tree

2 files changed

+1
-95
lines changed

2 files changed

+1
-95
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -242,97 +242,3 @@ jobs:
242242
- name: Build example for iOS
243243
run: |
244244
yarn turbo run build:ios --cache-dir="${{ env.TURBO_CACHE_DIR }}"
245-
246-
build-ios-expo:
247-
runs-on: macos-15
248-
env:
249-
TURBO_CACHE_DIR: .turbo/expo-ios
250-
steps:
251-
- name: Checkout
252-
uses: actions/checkout@v3
253-
254-
- name: Setup
255-
uses: ./.github/actions/setup
256-
257-
- name: Build package
258-
run: yarn prepare
259-
260-
- name: Cache turborepo for iOS
261-
uses: actions/cache@v3
262-
with:
263-
path: ${{ env.TURBO_CACHE_DIR }}
264-
key: ${{ runner.os }}-turborepo-expo-ios-${{ hashFiles('yarn.lock') }}
265-
restore-keys: |
266-
${{ runner.os }}-turborepo-expo-ios-
267-
268-
- name: Check turborepo cache for iOS
269-
run: |
270-
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:ios-expo --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:ios-expo').cache.status")
271-
272-
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
273-
echo "turbo_cache_hit=1" >> $GITHUB_ENV
274-
fi
275-
276-
- name: Build example for iOS
277-
run: |
278-
yarn turbo run build:ios-expo --cache-dir="${{ env.TURBO_CACHE_DIR }}"
279-
280-
281-
build-android-expo:
282-
runs-on: ubuntu-latest
283-
env:
284-
TURBO_CACHE_DIR: .turbo/android
285-
steps:
286-
- name: Checkout
287-
uses: actions/checkout@v3
288-
289-
- name: Setup
290-
uses: ./.github/actions/setup
291-
292-
- name: Build package
293-
run: yarn prepare
294-
295-
- name: Cache turborepo for Android
296-
uses: actions/cache@v3
297-
with:
298-
path: ${{ env.TURBO_CACHE_DIR }}
299-
key: ${{ runner.os }}-turborepo-expo-android-${{ hashFiles('yarn.lock') }}
300-
restore-keys: |
301-
${{ runner.os }}-turborepo-expo-android-
302-
303-
- name: Check turborepo cache for Android
304-
run: |
305-
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:android-expo --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:android-expo').cache.status")
306-
307-
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then
308-
echo "turbo_cache_hit=1" >> $GITHUB_ENV
309-
fi
310-
311-
- name: Install JDK
312-
if: env.turbo_cache_hit != 1
313-
uses: actions/setup-java@v3
314-
with:
315-
distribution: 'zulu'
316-
java-version: '17'
317-
318-
- name: Finalize Android SDK
319-
if: env.turbo_cache_hit != 1
320-
run: |
321-
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
322-
323-
- name: Cache Gradle
324-
if: env.turbo_cache_hit != 1
325-
uses: actions/cache@v3
326-
with:
327-
path: |
328-
~/.gradle/wrapper
329-
~/.gradle/caches
330-
key: ${{ runner.os }}-gradle-${{ hashFiles('apps/example/android/gradle/wrapper/gradle-wrapper.properties') }}
331-
restore-keys: |
332-
${{ runner.os }}-gradle-
333-
334-
- name: Build example for Android
335-
env:
336-
JAVA_OPTS: "-XX:MaxHeapSize=6g"
337-
run: |
338-
yarn turbo run build:android-expo --cache-dir="${{ env.TURBO_CACHE_DIR }}"

apps/example-expo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "expo start",
88
"reset-project": "node ./scripts/reset-project.js",
99
"build:android-expo": "expo prebuild --clean --platform android ; cd android ; ./gradlew assembleRelease",
10-
"build:ios-expo": "expo prebuild --clean --platform ios && expo run:ios",
10+
"build:ios-expo": "expo prebuild --clean --platform ios ; expo run:ios",
1111
"android": "expo run:android",
1212
"ios": "expo run:ios",
1313
"web": "expo start --web",

0 commit comments

Comments
 (0)