File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1111
1212jobs :
1313 build :
14- runs-on : ubuntu-latest
14+ runs-on : ubuntu-22.04
1515
1616 steps :
1717 - name : 检出代码
2121 uses : actions/setup-java@v3
2222 with :
2323 distribution : ' temurin'
24- java-version : ' 11 '
24+ java-version : ' 17 '
2525
2626 - name : 安装依赖包
2727 run : |
@@ -31,12 +31,18 @@ jobs:
3131 - name : 设置 Android SDK
3232 uses : android-actions/setup-android@v2
3333
34+ - name : 缓存 Android NDK
35+ uses : actions/cache@v3
36+ with :
37+ path : ${ANDROID_SDK_ROOT}/ndk/android-ndk-r22b
38+ key : android-ndk-r22b
39+
3440 - name : 下载 Android NDK
41+ if : steps.cache-ndk.outputs.cache-hit != 'true'
3542 run : |
3643 mkdir -p ${ANDROID_SDK_ROOT}/ndk
3744 wget https://dl.google.com/android/repository/android-ndk-r22b-linux-x86_64.zip
3845 unzip android-ndk-r22b-linux-x86_64.zip -d ${ANDROID_SDK_ROOT}/ndk
39- echo "ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk/android-ndk-r22b" >> $GITHUB_ENV
4046
4147 - name : 构建 FFmpeg-Kit LTS
4248 run : |
You can’t perform that action at this time.
0 commit comments