Skip to content

Commit aedbadf

Browse files
push the updated build
1 parent 27fe85a commit aedbadf

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/release-android-lib.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,20 @@ jobs:
3030
- name: Set up Android SDK/NDK
3131
uses: android-actions/setup-android@v3 # Installs SDK/NDK if needed
3232

33-
- name: Build with android.sh
33+
# Removed build step; download prebuilt AAR instead
34+
- name: Download Prebuilt AAR from GitHub Release
3435
if: steps.filter.outputs.android == 'true'
3536
run: |
36-
export ANDROID_SDK_ROOT=$ANDROID_HOME
37-
export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk-bundle
38-
./android.sh # Run your build script to generate AARs
37+
curl -L -H "Accept: application/octet-stream" \
38+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
39+
-o android/ffmpeg-kit-full.aar \
40+
https://github.com/homebase-id/ffmpeg-kit/releases/download/v6.0.2/bundle-android-aar-ffmpeg-kit-full-6.0.2.aar
3941
4042
- name: Publish to GitHub Packages
4143
if: steps.filter.outputs.android == 'true'
4244
run: |
4345
cd android
44-
./gradlew publish # Assumes build.gradle has publishing config
46+
# Assuming build.gradle is updated to publish the prebuilt AAR (see below)
47+
./gradlew publish
4548
env:
4649
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Your PAT secret

android/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ publishing {
2727
artifactId = 'ffmpeg-kit-full' // Package name, e.g., full, min, etc.
2828
version = '6.0.2' // From your release tag
2929

30-
afterEvaluate {
31-
from components.release
32-
}
30+
artifact('ffmpeg-kit-full.aar') // Points to the downloaded prebuilt AAR
3331
}
3432
}
3533
repositories {

0 commit comments

Comments
 (0)