Cache Generated Externals to Improve the runtime of the workflow
OmarHatem committed
Dec 19, 2022 at 19:37 UTC
ecc556e4e339ca5d22569d458d6ba37c71f204b9
1 file changed
+18
.github/workflows/pr_test_build.yml
+18
@@ -34,6 +34,24 @@ jobs:
34
./install_ndk.sh
35
source ./app_env.sh cakewallet
36
./app_config.sh
37
+
38
+ - name: Cache Externals
39
+ id: cache-externals
40
+ uses: actions/cache@v3
41
+ with:
42
+ path: |
43
+ /opt/android/cake_wallet/cw_haven/android/.cxx
44
+ /opt/android/cake_wallet/cw_haven/ios/External
45
+ /opt/android/cake_wallet/cw_monero/android/.cxx
46
+ /opt/android/cake_wallet/cw_haven/ios/External
47
+ /opt/android/cake_wallet/cw_shared_external/ios/External
48
+ key: externals-cache-key
49
+
50
+ - if: ${{ steps.cache-externals.outputs.cache-hit != 'true' }}
51
+ name: Generate Externals
52
+ run: |
53
+ cd cake_wallet/scripts/android/
54
+ source ./app_env.sh cakewallet
55
./build_all.sh
56
./copy_monero_deps.sh
57