Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ env.TURBO_CACHE_DIR }}
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock', 'android/**', 'nitrogen/generated/android/**') }}
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock', 'android/**', 'nitrogen/generated/android/**', 'src/specs/*.nitro.ts') }}
restore-keys: |
${{ runner.os }}-turborepo-android-

Expand Down Expand Up @@ -158,7 +158,7 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ env.TURBO_CACHE_DIR }}
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock', 'ios/**', 'nitrogen/generated/ios/**', '*.podspec') }}
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock', 'ios/**', 'nitrogen/generated/ios/**', '*.podspec', 'src/specs/*.nitro.ts') }}
restore-keys: |
${{ runner.os }}-turborepo-ios-

Expand Down Expand Up @@ -241,7 +241,17 @@ jobs:
bundle install
bundle exec pod install --project-directory=ios

- name: Restore iOS build cache
id: ios-build-cache
uses: actions/cache/restore@v4
with:
path: example/ios/build
key: ${{ runner.os }}-ios-build-${{ env.XCODE_VERSION }}-${{ hashFiles('yarn.lock', 'ios/**', 'nitrogen/generated/ios/**', '*.podspec', 'example/ios/Podfile.lock', 'example/ios/RiveExample/**') }}
restore-keys: |
${{ runner.os }}-ios-build-${{ env.XCODE_VERSION }}-

- name: Build iOS app
if: steps.ios-build-cache.outputs.cache-hit != 'true'
working-directory: example/ios
run: |
set -o pipefail && xcodebuild \
Expand All @@ -253,6 +263,13 @@ jobs:
build \
CODE_SIGNING_ALLOWED=NO

- name: Save iOS build cache
if: steps.ios-build-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: example/ios/build
key: ${{ steps.ios-build-cache.outputs.cache-primary-key }}

- name: Boot iOS Simulator
uses: futureware-tech/simulator-action@v4
with:
Expand Down
6 changes: 2 additions & 4 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"nitrogen/generated/android/**",
"android",
"!android/build",
"src/*.ts",
"src/*.tsx",
"src/specs/*.nitro.ts",
"example/package.json",
"example/android",
"!example/android/.gradle",
Expand All @@ -27,8 +26,7 @@
"nitrogen/generated/ios/**",
"*.podspec",
"ios",
"src/*.ts",
"src/*.tsx",
"src/specs/*.nitro.ts",
"example/package.json",
"example/ios",
"!example/ios/build",
Expand Down
Loading