Skip to content

Commit ab77829

Browse files
fix: update cache keys for Android and iOS workflows to improve build artifact caching
1 parent 205f766 commit ab77829

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
3030
with:
3131
path: example/android/app/build/outputs/apk/debug/app-debug.apk
32-
key: ${{ runner.os }}-apk-${{ hashFiles('android/**/*.{java,kt,xml}', 'example/android/**/*.{java,kt,xml,gradle}', 'example/ios/**/*.{js,jsx,ts,tsx}', 'src/**/*.{js,jsx,ts,tsx}', 'package.json', 'yarn.lock') }}
32+
key: ${{ runner.os }}-apk-${{ hashFiles('android/**/*.{java,kt,xml}', 'example/android/**/*.{java,kt,xml,gradle}', 'src/**/*.{js,jsx,ts,tsx}', 'package.json', 'yarn.lock') }}
3333

3434
- name: Cache NDK
3535
id: cache-ndk

.github/workflows/build-ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
3131
with:
3232
path: example/ios/build/Build/Products/Debug-iphonesimulator/MendixNativeExample.app
33-
key: ios-app-${{ runner.os }}-${{ hashFiles('example/ios/Podfile.lock', 'example/ios/**/*.pbxproj', 'ios/**/*.{swift,h,m,mm}', 'src/**/*.{js,jsx,ts,tsx}', 'example/ios/**/*.{js,jsx,ts,tsx}', 'package.json', 'yarn.lock') }}
33+
key: ios-app-${{ runner.os }}-${{ hashFiles('example/ios/Podfile.lock', 'example/ios/**/*.{swift,h,m,mm}', 'ios/**/*.{swift,h,m,mm}', 'src/**/*.{js,jsx,ts,tsx}', 'package.json', 'yarn.lock') }}
3434

3535
- name: Cache DerivedData
3636
if: steps.cache-ios-app.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)