Skip to content

Commit

Permalink
Use build script for ffmpeg in CI (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxr1998 authored Sep 3, 2021
1 parent 155f61d commit 745bf18
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/extension-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,8 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup environment variables
run: |
echo "EXOPLAYER_ROOT=${GITHUB_WORKSPACE}/ExoPlayer" >> $GITHUB_ENV
echo "FFMPEG_EXT_PATH=${GITHUB_WORKSPACE}/ExoPlayer/extensions/ffmpeg/src/main" >> $GITHUB_ENV
echo "FFMPEG_PATH=${GITHUB_WORKSPACE}/ffmpeg" >> $GITHUB_ENV
echo "ENABLED_DECODERS=(alac pcm_mulaw pcm_alaw aac ac3 eac3 dca mlp truehd)" >> $GITHUB_ENV
- name: Create softlink to ffmpeg in ExoPlayer
run: |
cd "${FFMPEG_EXT_PATH}/jni"
ln -sf "${FFMPEG_PATH}" ffmpeg
- name: Build ffmpeg
run: |
cd "${FFMPEG_EXT_PATH}/jni"
./build_ffmpeg.sh "${FFMPEG_EXT_PATH}" "${ANDROID_NDK_ROOT}" "linux-x86_64" "${ENABLED_DECODERS[@]}"
run: ./build.sh
- name: Force specific version of cmake to build extension
run: |
cmake=(${ANDROID_SDK_ROOT}/cmake/3.10.2*)
Expand Down

0 comments on commit 745bf18

Please sign in to comment.