-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add build workflow and rework publish workflow
Switch to latest runner, use gradle-setup-action, tweak naming
- Loading branch information
1 parent
3c40c29
commit a1a6c19
Showing
2 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: ExoPlayer FFmpeg Extension / Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
env: | ||
NDK_VER: 21.4.7075529 | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3 | ||
with: | ||
submodules: recursive | ||
- name: Setup Java | ||
uses: actions/setup-java@a18c333f3f14249953dab3e186e5e21bf3390f1d # tag=v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@fd32ae908111fe31afa48827bd1ee909540aa971 # tag=v2 | ||
- name: Cache NDK | ||
uses: actions/cache@v3 | ||
with: | ||
path: /usr/local/lib/android/sdk/ndk/${{ env.NDK_VER }} | ||
key: ${{ runner.os }}-${{ env.NDK_VER }} | ||
- name: Install correct NDK | ||
run: sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install "ndk;${NDK_VER}" | ||
- name: Build ffmpeg | ||
run: ./build.sh | ||
- name: Build extension and publish library locally | ||
run: ./gradlew :exoplayer-ffmpeg-extension:publishToMavenLocal |
This file contains 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