File tree Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change 74
74
with :
75
75
python-version : ' 3.7'
76
76
77
+ - name : Cache NDK
78
+ id : cache_ndk
79
+ uses : actions/cache@v2
80
+ with :
81
+ path : /tmp/android-ndk-r21e
82
+ key : android-ndk-${{ matrix.os }}-r21e
83
+
84
+ - name : Check cached NDK
85
+ shell : bash
86
+ if : steps.cache_ndk.outputs.cache-hit != 'true'
87
+ run : |
88
+ # If the NDK failed to download from the cache, but there is a
89
+ # /tmp/android-ndk-r21e directory, it's incomplete, so remove it.
90
+ if [[ -d "/tmp/android-ndk-r21e" ]]; then
91
+ echo "Removing incomplete download of NDK"
92
+ rm -rf /tmp/android-ndk-r21e
93
+ fi
94
+
77
95
- name : Install prerequisites
78
96
shell : bash
79
97
run : |
@@ -82,13 +100,8 @@ jobs:
82
100
python scripts/gha/install_prereqs_desktop.py
83
101
build_scripts/android/install_prereqs.sh
84
102
cd ..
85
-
86
- - name : Cache NDK
87
- id : cache_ndk
88
- uses : actions/cache@v2
89
- with :
90
- path : /tmp/android-ndk-r21e
91
- key : android-ndk-${{ matrix.os }}-r21e
103
+ echo "NDK_ROOT=/tmp/android-ndk-r21e" >> $GITHUB_ENV
104
+ echo "ANDROID_NDK_HOME=/tmp/android-ndk-r21e" >> $GITHUB_ENV
92
105
93
106
- name : Install Unity installer (U3D)
94
107
shell : bash
You can’t perform that action at this time.
0 commit comments