Build FFmpegKit AAR #20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build FFmpegKit AAR | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 作業用ディレクトリを作成 | |
| run: mkdir ffmpeg-kit && cd ffmpeg-kit | |
| - name: ffmpeg-kit のソースを clone(forkから) | |
| run: | | |
| git clone https://github.com/CSReviser/ffmpeg-kit.git | |
| cd ffmpeg-kit | |
| - name: JDK 17 をセットアップ | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Set up Android SDK | |
| uses: android-actions/setup-android@v2 | |
| - name: Install NDK r25c | |
| run: | | |
| yes | $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager "ndk;25.2.9519653" | |
| - name: Set ANDROID_NDK_ROOT | |
| run: echo "ANDROID_NDK_ROOT=$ANDROID_SDK_ROOT/ndk/25.2.9519653" >> $GITHUB_ENV | |
| - name: Grant execute permission to android.sh | |
| run: chmod +x ffmpeg-kit/android.sh | |
| - name: Build ffmpeg-kit | |
| working-directory: ffmpeg-kit | |
| run: | | |
| bash -x ./android.sh --full --debug > ../build.log 2>&1 || (cat ../build.log && exit 1) | |
| - name: AAR をアップロード | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ffmpeg-kit-aar | |
| path: ffmpeg-kit/prebuilt/bundle-android-aar/ | |
| if-no-files-found: error |