Skip to content

Commit 09723ed

Browse files
authored
Update android-build-scripts-16kb.yml
1 parent ad61ccf commit 09723ed

1 file changed

Lines changed: 17 additions & 111 deletions

File tree

.github/workflows/android-build-scripts-16kb.yml

Lines changed: 17 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@ on:
2727

2828
jobs:
2929
build-main-on-linux:
30-
name: android main on linux
30+
name: android main on linux (ndk-r27b)
3131
runs-on: ubuntu-22.04
32-
strategy:
33-
matrix:
34-
ndk-version: [ 'r22b-linux-x86_64', 'r23b-linux', 'r24-linux', 'r25b-linux' ]
3532
defaults:
3633
run:
3734
shell: bash
@@ -44,9 +41,9 @@ jobs:
4441
java-version: '17'
4542
- name: prerequisites
4643
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
47-
- name: set up android ndk
44+
- name: set up android ndk r27b
4845
run: |
49-
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
46+
curl -s "https://dl.google.com/android/repository/android-ndk-r27b-linux.zip" -o ndk.zip
5047
unzip -q -o ndk.zip -d .ndk
5148
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
5249
- name: run the build script
@@ -58,11 +55,11 @@ jobs:
5855
echo "Error: ffmpeg-kit.aar not found in prebuilt directory."
5956
exit 1
6057
fi
61-
mv "$AAR_PATH" "ffmpeg-kit-main-${{ matrix.ndk-version }}.aar"
58+
mv "$AAR_PATH" "ffmpeg-kit-main-ndk-r27b.aar"
6259
- uses: actions/upload-artifact@v4
6360
with:
64-
name: ffmpeg-kit-main-aar-${{ matrix.ndk-version }}
65-
path: ffmpeg-kit-main-${{ matrix.ndk-version }}.aar
61+
name: ffmpeg-kit-main-aar
62+
path: ffmpeg-kit-main-ndk-r27b.aar
6663
if-no-files-found: error
6764
- name: print build logs
6865
if: ${{ always() }}
@@ -71,12 +68,11 @@ jobs:
7168
if: ${{ failure() }}
7269
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
7370

71+
---
72+
7473
build-lts-on-linux:
75-
name: android lts on linux
74+
name: android lts on linux (ndk-r27b)
7675
runs-on: ubuntu-22.04
77-
strategy:
78-
matrix:
79-
ndk-version: [ 'r22b-linux-x86_64', 'r23b-linux' ]
8076
defaults:
8177
run:
8278
shell: bash
@@ -89,9 +85,9 @@ jobs:
8985
java-version: '17'
9086
- name: prerequisites
9187
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
92-
- name: set up android ndk
88+
- name: set up android ndk r27b
9389
run: |
94-
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
90+
curl -s "https://dl.google.com/android/repository/android-ndk-r27b-linux.zip" -o ndk.zip
9591
unzip -q -o ndk.zip -d .ndk
9692
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
9793
- name: run the build script
@@ -103,11 +99,11 @@ jobs:
10399
echo "Error: ffmpeg-kit.aar not found in prebuilt directory."
104100
exit 1
105101
fi
106-
mv "$AAR_PATH" "ffmpeg-kit-lts-${{ matrix.ndk-version }}.aar"
102+
mv "$AAR_PATH" "ffmpeg-kit-lts-ndk-r27b.aar"
107103
- uses: actions/upload-artifact@v4
108104
with:
109-
name: ffmpeg-kit-lts-aar-${{ matrix.ndk-version }}
110-
path: ffmpeg-kit-lts-${{ matrix.ndk-version }}.aar
105+
name: ffmpeg-kit-lts-aar
106+
path: ffmpeg-kit-lts-ndk-r27b.aar
111107
if-no-files-found: error
112108
- name: print build logs
113109
if: ${{ always() }}
@@ -116,97 +112,7 @@ jobs:
116112
if: ${{ failure() }}
117113
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
118114

119-
build-main-on-macos:
120-
name: android main on macos
121-
runs-on: macos-12
122-
strategy:
123-
matrix:
124-
ndk-version: [ 'r22b-darwin-x86_64', 'r23b-darwin', 'r24-darwin', 'r25b-darwin' ]
125-
defaults:
126-
run:
127-
shell: bash
128-
steps:
129-
- uses: actions/checkout@v4
130-
- name: set up adopt jdk 17
131-
uses: actions/setup-java@v3
132-
with:
133-
distribution: 'adopt'
134-
java-version: '17'
135-
- name: set up android ndk
136-
run: |
137-
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
138-
unzip -q -o ndk.zip -d .ndk
139-
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
140-
- name: run the build script
141-
run: ./android.sh -d --enable-android-media-codec --enable-android-zlib --disable-arm-v7a
142-
- name: print build logs
143-
if: ${{ always() }}
144-
run: cat build.log
145-
- name: print ffbuild logs
146-
if: ${{ failure() }}
147-
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
148-
149-
build-lts-on-macos:
150-
name: android lts on macos
151-
runs-on: macos-12
152-
strategy:
153-
matrix:
154-
ndk-version: [ 'r22b-darwin-x86_64', 'r23b-darwin' ]
155-
defaults:
156-
run:
157-
shell: bash
158-
steps:
159-
- uses: actions/checkout@v4
160-
- name: set up adopt jdk 17
161-
uses: actions/setup-java@v3
162-
with:
163-
distribution: 'adopt'
164-
java-version: '17'
165-
- name: set up android ndk
166-
run: |
167-
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
168-
unzip -q -o ndk.zip -d .ndk
169-
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
170-
- name: run the build script
171-
run: ./android.sh -d --lts --enable-android-media-codec --enable-android-zlib
172-
- name: print build logs
173-
if: ${{ always() }}
174-
run: cat build.log
175-
- name: print ffbuild logs
176-
if: ${{ failure() }}
177-
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
178-
179-
build-main-without-ffmpeg-kit-protocols-on-linux:
180-
name: build without ffmpeg-kit protocols
181-
runs-on: ubuntu-22.04
182-
strategy:
183-
matrix:
184-
ndk-version: [ 'r22b-linux-x86_64' ]
185-
defaults:
186-
run:
187-
shell: bash
188-
steps:
189-
- uses: actions/checkout@v4
190-
- name: set up adopt jdk 17
191-
uses: actions/setup-java@v3
192-
with:
193-
distribution: 'adopt'
194-
java-version: '17'
195-
- name: prerequisites
196-
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
197-
- name: set up android ndk
198-
run: |
199-
curl -s "https://dl.google.com/android/repository/android-ndk-${{ matrix.ndk-version }}.zip" -o ndk.zip
200-
unzip -q -o ndk.zip -d .ndk
201-
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
202-
- name: run the build script
203-
run: ./android.sh --no-ffmpeg-kit-protocols --disable-x86 --disable-x86-64 --disable-arm-v7a --disable-arm-v7a-neon
204-
- name: print build logs
205-
if: ${{ always() }}
206-
run: cat build.log
207-
- name: print ffbuild logs
208-
if: ${{ failure() }}
209-
run: '[[ -f ./src/ffmpeg/ffbuild/config.log ]] && tail -50 ./src/ffmpeg/ffbuild/config.log'
115+
---
210116

211117
create-release:
212118
name: create github release
@@ -231,8 +137,8 @@ jobs:
231137
uses: softprops/action-gh-release@v2
232138
with:
233139
tag_name: ${{ env.TAG_NAME }}
234-
name: "Android AARs ${{ env.TAG_NAME }}"
235-
body: "Automated release of Android AAR files from Linux builds."
140+
name: "Android AARs (NDK r27b) - ${{ env.TAG_NAME }}"
141+
body: "Automated release of Android AAR files from Linux builds using NDK r27b."
236142
prerelease: true
237143
# Use a glob pattern to upload all downloaded .aar files
238144
files: aar-artifacts/*/*.aar

0 commit comments

Comments
 (0)