Skip to content

Commit b63c009

Browse files
author
NullPointerException
committed
update ffmpeg
1 parent 7f62304 commit b63c009

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/build-ffmpeg.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,20 @@ jobs:
3232
uses: android-actions/setup-android@v2
3333

3434
- name: 缓存 Android NDK
35+
id: cache-ndk
3536
uses: actions/cache@v3
3637
with:
3738
path: ${ANDROID_SDK_ROOT}/ndk/android-ndk-r22b
3839
key: android-ndk-r22b
3940

41+
- name: 检查缓存状态
42+
run: |
43+
if [[ "${{ steps.cache-ndk.outputs.cache-hit }}" == "true" ]]; then
44+
echo "缓存已命中,无需下载 NDK"
45+
else
46+
echo "缓存未命中,将下载 NDK"
47+
fi
48+
4049
- name: 下载 Android NDK
4150
if: steps.cache-ndk.outputs.cache-hit != 'true'
4251
run: |
@@ -46,19 +55,12 @@ jobs:
4655
4756
- name: 构建 FFmpeg-Kit LTS
4857
run: |
49-
5058
git clone https://github.com/InfinityLoop1308/ffmpeg-kit.git
5159
cd ffmpeg-kit
52-
53-
# 构建 LTS 版本,并启用 gmp 和 gnutls 外部库
5460
BUILD_OPTIONS="--lts --enable-gmp --enable-gnutls --enable-android-media-codec --enable-android-zlib"
55-
56-
# 添加额外的构建选项
5761
if [[ -n "${{ github.event.inputs.extra_options }}" ]]; then
5862
BUILD_OPTIONS="${BUILD_OPTIONS} ${{ github.event.inputs.extra_options }}"
5963
fi
60-
61-
# 执行构建脚本
6264
./android.sh ${BUILD_OPTIONS}
6365
6466
- name: 上传 LTS AAR 文件

0 commit comments

Comments
 (0)