Skip to content

Commit dea9d54

Browse files
fix: update caching keys in Android and iOS workflows to include workflow files
1 parent dcf070c commit dea9d54

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
4545
with:
4646
path: example/android/app/build/outputs/apk/debug/app-debug.apk
47-
key: ${{ runner.os }}-apk-${{ hashFiles('android/**/*.{java,kt,xml,gradle}', 'example/android/**/*.{java,kt,xml,gradle}', 'package.json', 'yarn.lock') }}
47+
key: ${{ runner.os }}-apk-${{ hashFiles('android/**/*.{java,kt,xml,gradle}', 'example/android/**/*.{java,kt,xml,gradle}', 'package.json', 'yarn.lock', '.github/workflows/android.yml') }}
4848

4949
- name: AVD cache
5050
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830

.github/workflows/ios.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
4848
with:
4949
path: example/ios/build/DerivedData
50-
key: ${{ runner.os }}-derived-data-${{ hashFiles('example/ios/Podfile.lock', 'example/ios/**/*.pbxproj') }}
50+
key: ${{ runner.os }}-derived-data-${{ hashFiles('example/ios/Podfile.lock', 'example/ios/**/*.pbxproj', '.github/workflows/ios.yml') }}
5151
restore-keys: |
5252
${{ runner.os }}-derived-data-
5353
@@ -59,7 +59,7 @@ jobs:
5959
example/ios/Pods
6060
~/Library/Caches/CocoaPods
6161
~/.cocoapods
62-
key: ${{ runner.os }}-pods-${{ hashFiles('example/ios/Podfile.lock') }}
62+
key: ${{ runner.os }}-pods-${{ hashFiles('example/ios/Podfile.lock', '.github/workflows/ios.yml') }}
6363
restore-keys: |
6464
${{ runner.os }}-pods-
6565

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build:android": "react-native build-android --extra-params \"--no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a\"",
1010
"build:ios": "react-native build-ios --mode Debug",
1111
"pod": "bundle install && bundle exec pod install --project-directory=ios",
12-
"app:package:ios": "xcodebuild -workspace ios/MendixNativeExample.xcworkspace -scheme MendixNativeExample -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 17,OS=latest' -derivedDataPath ios/build build",
12+
"app:package:ios": "xcodebuild -workspace ios/MendixNativeExample.xcworkspace -scheme MendixNativeExample -configuration Debug -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 17,OS=26.0' -derivedDataPath ios/build build",
1313
"app:install:ios": "xcrun simctl install booted ios/build/Build/Products/Debug-iphonesimulator/MendixNativeExample.app",
1414
"app:package:android": "(cd android && ./gradlew assembleDebug --no-daemon)",
1515
"app:install:android": "adb install -r android/app/build/outputs/apk/debug/app-debug.apk",

0 commit comments

Comments
 (0)