Skip to content

Commit f3bbe94

Browse files
author
NullPointerException
committed
update ffmpeg
1 parent 6104305 commit f3bbe94

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build-ffmpeg.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1515

1616
steps:
1717
- name: 检出代码
@@ -21,7 +21,7 @@ jobs:
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: |

0 commit comments

Comments
 (0)