|
50 | 50 | - name: Setup |
51 | 51 | uses: ./.github/actions/setup |
52 | 52 |
|
| 53 | + - name: Build package |
| 54 | + run: yarn prepare |
| 55 | + |
53 | 56 | - name: Cache turborepo for Android |
54 | 57 | uses: actions/cache@v3 |
55 | 58 | with: |
@@ -106,6 +109,9 @@ jobs: |
106 | 109 | - name: Setup |
107 | 110 | uses: ./.github/actions/setup |
108 | 111 |
|
| 112 | + - name: Build package |
| 113 | + run: yarn prepare |
| 114 | + |
109 | 115 | - name: Cache turborepo for Android new arch |
110 | 116 | uses: actions/cache@v3 |
111 | 117 | with: |
@@ -162,6 +168,9 @@ jobs: |
162 | 168 | - name: Setup |
163 | 169 | uses: ./.github/actions/setup |
164 | 170 |
|
| 171 | + - name: Build package |
| 172 | + run: yarn prepare |
| 173 | + |
165 | 174 | - name: Cache turborepo for iOS |
166 | 175 | uses: actions/cache@v3 |
167 | 176 | with: |
@@ -202,6 +211,9 @@ jobs: |
202 | 211 | - name: Setup |
203 | 212 | uses: ./.github/actions/setup |
204 | 213 |
|
| 214 | + - name: Build package |
| 215 | + run: yarn prepare |
| 216 | + |
205 | 217 | - name: Cache turborepo for iOS |
206 | 218 | uses: actions/cache@v3 |
207 | 219 | with: |
@@ -230,3 +242,192 @@ jobs: |
230 | 242 | - name: Build example for iOS |
231 | 243 | run: | |
232 | 244 | 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/ios-expo |
| 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 }}" |
| 339 | +
|
| 340 | +
|
| 341 | + build-tvos-expo: |
| 342 | + runs-on: macos-15 |
| 343 | + env: |
| 344 | + TURBO_CACHE_DIR: .turbo/ios-expo |
| 345 | + steps: |
| 346 | + - name: Checkout |
| 347 | + uses: actions/checkout@v3 |
| 348 | + |
| 349 | + - name: Setup |
| 350 | + uses: ./.github/actions/setup |
| 351 | + |
| 352 | + - name: Build package |
| 353 | + run: yarn prepare |
| 354 | + |
| 355 | + - name: Cache turborepo for iOS |
| 356 | + uses: actions/cache@v3 |
| 357 | + with: |
| 358 | + path: ${{ env.TURBO_CACHE_DIR }} |
| 359 | + key: ${{ runner.os }}-turborepo-expo-tvos--${{ hashFiles('yarn.lock') }} |
| 360 | + restore-keys: | |
| 361 | + ${{ runner.os }}-turborepo-expo-tvos- |
| 362 | +
|
| 363 | + - name: Check turborepo cache for iOS |
| 364 | + run: | |
| 365 | + TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:tvos-expo --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:tvos-expo').cache.status") |
| 366 | +
|
| 367 | + if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then |
| 368 | + echo "turbo_cache_hit=1" >> $GITHUB_ENV |
| 369 | + fi |
| 370 | +
|
| 371 | + - name: Build example for tvOS |
| 372 | + run: | |
| 373 | + yarn turbo run build:tvos-expo --cache-dir="${{ env.TURBO_CACHE_DIR }}" |
| 374 | +
|
| 375 | +
|
| 376 | + build-androidtv-expo: |
| 377 | + runs-on: ubuntu-latest |
| 378 | + env: |
| 379 | + TURBO_CACHE_DIR: .turbo/android |
| 380 | + steps: |
| 381 | + - name: Checkout |
| 382 | + uses: actions/checkout@v3 |
| 383 | + |
| 384 | + - name: Setup |
| 385 | + uses: ./.github/actions/setup |
| 386 | + |
| 387 | + - name: Build package |
| 388 | + run: yarn prepare |
| 389 | + |
| 390 | + - name: Cache turborepo for Android |
| 391 | + uses: actions/cache@v3 |
| 392 | + with: |
| 393 | + path: ${{ env.TURBO_CACHE_DIR }} |
| 394 | + key: ${{ runner.os }}-turborepo-expo-androidtv-${{ hashFiles('yarn.lock') }} |
| 395 | + restore-keys: | |
| 396 | + ${{ runner.os }}-turborepo-expo-androidtv- |
| 397 | +
|
| 398 | + - name: Check turborepo cache for Android TV |
| 399 | + run: | |
| 400 | + TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run build:androidtv-expo --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'build:androidtv-expo').cache.status") |
| 401 | +
|
| 402 | + if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then |
| 403 | + echo "turbo_cache_hit=1" >> $GITHUB_ENV |
| 404 | + fi |
| 405 | +
|
| 406 | + - name: Install JDK |
| 407 | + if: env.turbo_cache_hit != 1 |
| 408 | + uses: actions/setup-java@v3 |
| 409 | + with: |
| 410 | + distribution: 'zulu' |
| 411 | + java-version: '17' |
| 412 | + |
| 413 | + - name: Finalize Android SDK |
| 414 | + if: env.turbo_cache_hit != 1 |
| 415 | + run: | |
| 416 | + /bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null" |
| 417 | +
|
| 418 | + - name: Cache Gradle |
| 419 | + if: env.turbo_cache_hit != 1 |
| 420 | + uses: actions/cache@v3 |
| 421 | + with: |
| 422 | + path: | |
| 423 | + ~/.gradle/wrapper |
| 424 | + ~/.gradle/caches |
| 425 | + key: ${{ runner.os }}-gradle-${{ hashFiles('apps/example/android/gradle/wrapper/gradle-wrapper.properties') }} |
| 426 | + restore-keys: | |
| 427 | + ${{ runner.os }}-gradle- |
| 428 | +
|
| 429 | + - name: Build example for Android TV |
| 430 | + env: |
| 431 | + JAVA_OPTS: "-XX:MaxHeapSize=6g" |
| 432 | + run: | |
| 433 | + yarn turbo run build:androidtv-expo --cache-dir="${{ env.TURBO_CACHE_DIR }}" |
0 commit comments