Skip to content

Commit b4eccf8

Browse files
committed
build: update ci
1 parent d590b9b commit b4eccf8

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/actions/setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ runs:
1616
path: |
1717
**/node_modules
1818
.yarn/install-state.gz
19-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/package.json') }}
19+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
2020
restore-keys: |
21-
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
21+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
2222
${{ runner.os }}-yarn-
2323
2424
- name: Install dependencies

.github/workflows/ci.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches:
88
- main
9+
merge_group:
10+
types:
11+
- checks_requested
912

1013
jobs:
1114
lint:
@@ -62,7 +65,7 @@ jobs:
6265
uses: actions/cache@v3
6366
with:
6467
path: ${{ env.TURBO_CACHE_DIR }}
65-
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('**/yarn.lock') }}
68+
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
6669
restore-keys: |
6770
${{ runner.os }}-turborepo-android-
6871
@@ -79,7 +82,7 @@ jobs:
7982
uses: actions/setup-java@v3
8083
with:
8184
distribution: 'zulu'
82-
java-version: '11'
85+
java-version: '17'
8386

8487
- name: Finalize Android SDK
8588
if: env.turbo_cache_hit != 1
@@ -98,11 +101,13 @@ jobs:
98101
${{ runner.os }}-gradle-
99102
100103
- name: Build example for Android
104+
env:
105+
JAVA_OPTS: "-XX:MaxHeapSize=6g"
101106
run: |
102107
yarn turbo run build:android --cache-dir="${{ env.TURBO_CACHE_DIR }}"
103108
104109
build-ios:
105-
runs-on: macos-latest
110+
runs-on: macos-14
106111
env:
107112
TURBO_CACHE_DIR: .turbo/ios
108113
steps:
@@ -116,7 +121,7 @@ jobs:
116121
uses: actions/cache@v3
117122
with:
118123
path: ${{ env.TURBO_CACHE_DIR }}
119-
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('**/yarn.lock') }}
124+
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}
120125
restore-keys: |
121126
${{ runner.os }}-turborepo-ios-
122127
@@ -142,7 +147,8 @@ jobs:
142147
- name: Install cocoapods
143148
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
144149
run: |
145-
yarn pod-install example/ios
150+
cd example/ios
151+
pod install
146152
env:
147153
NO_FLIPPER: 1
148154

0 commit comments

Comments
 (0)