Skip to content

Commit 8055523

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

1 file changed

Lines changed: 12 additions & 15 deletions

File tree

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

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ on:
2727

2828
jobs:
2929
build-main-on-linux:
30-
name: android main on linux (ndk-r27b)
30+
name: android main on linux (ndk-r25-16k)
3131
runs-on: ubuntu-22.04
3232
defaults:
3333
run:
@@ -41,9 +41,9 @@ jobs:
4141
java-version: '17'
4242
- name: prerequisites
4343
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
44-
- name: set up android ndk r27b
44+
- name: set up android ndk r25 (16k support)
4545
run: |
46-
curl -s "https://dl.google.com/android/repository/android-ndk-r27b-linux.zip" -o ndk.zip
46+
curl -L -s "https://ci.android.com/builds/submitted/12161346/linux/latest/android-ndk-12161346-linux-x86_64.zip" -o ndk.zip
4747
unzip -q -o ndk.zip -d .ndk
4848
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
4949
- name: run the build script
@@ -55,11 +55,11 @@ jobs:
5555
echo "Error: ffmpeg-kit.aar not found in prebuilt directory."
5656
exit 1
5757
fi
58-
mv "$AAR_PATH" "ffmpeg-kit-main-ndk-r27b.aar"
58+
mv "$AAR_PATH" "ffmpeg-kit-main-ndk-r25-16k.aar"
5959
- uses: actions/upload-artifact@v4
6060
with:
6161
name: ffmpeg-kit-main-aar
62-
path: ffmpeg-kit-main-ndk-r27b.aar
62+
path: ffmpeg-kit-main-ndk-r25-16k.aar
6363
if-no-files-found: error
6464
- name: print build logs
6565
if: ${{ always() }}
@@ -71,7 +71,7 @@ jobs:
7171
---
7272

7373
build-lts-on-linux:
74-
name: android lts on linux (ndk-r27b)
74+
name: android lts on linux (ndk-r25-16k)
7575
runs-on: ubuntu-22.04
7676
defaults:
7777
run:
@@ -85,9 +85,9 @@ jobs:
8585
java-version: '17'
8686
- name: prerequisites
8787
run: ${ANDROID_HOME}/cmdline-tools/latest/bin/sdkmanager --uninstall "cmake;3.10.2.4988404" "cmake;3.18.1"
88-
- name: set up android ndk r27b
88+
- name: set up android ndk r25 (16k support)
8989
run: |
90-
curl -s "https://dl.google.com/android/repository/android-ndk-r27b-linux.zip" -o ndk.zip
90+
curl -L -s "https://ci.android.com/builds/submitted/12161346/linux/latest/android-ndk-12161346-linux-x86_64.zip" -o ndk.zip
9191
unzip -q -o ndk.zip -d .ndk
9292
echo "ANDROID_NDK_ROOT=$PWD/.ndk/$(ls .ndk)" >> $GITHUB_ENV
9393
- name: run the build script
@@ -99,11 +99,11 @@ jobs:
9999
echo "Error: ffmpeg-kit.aar not found in prebuilt directory."
100100
exit 1
101101
fi
102-
mv "$AAR_PATH" "ffmpeg-kit-lts-ndk-r27b.aar"
102+
mv "$AAR_PATH" "ffmpeg-kit-lts-ndk-r25-16k.aar"
103103
- uses: actions/upload-artifact@v4
104104
with:
105105
name: ffmpeg-kit-lts-aar
106-
path: ffmpeg-kit-lts-ndk-r27b.aar
106+
path: ffmpeg-kit-lts-ndk-r25-16k.aar
107107
if-no-files-found: error
108108
- name: print build logs
109109
if: ${{ always() }}
@@ -116,10 +116,8 @@ jobs:
116116

117117
create-release:
118118
name: create github release
119-
# This job depends on the successful completion of both Linux build jobs
120119
needs: [build-main-on-linux, build-lts-on-linux]
121120
runs-on: ubuntu-latest
122-
# Condition: Only run this job when the workflow is manually triggered
123121
if: github.event_name == 'workflow_dispatch'
124122
permissions:
125123
contents: write # Required to create a release
@@ -137,8 +135,7 @@ jobs:
137135
uses: softprops/action-gh-release@v2
138136
with:
139137
tag_name: ${{ env.TAG_NAME }}
140-
name: "Android AARs (NDK r27b) - ${{ env.TAG_NAME }}"
141-
body: "Automated release of Android AAR files from Linux builds using NDK r27b."
138+
name: "Android AARs (NDK r25-16k) - ${{ env.TAG_NAME }}"
139+
body: "Automated release of Android AAR files from Linux builds using NDK r25 with 16kB page size support."
142140
prerelease: true
143-
# Use a glob pattern to upload all downloaded .aar files
144141
files: aar-artifacts/*/*.aar

0 commit comments

Comments
 (0)