Adapt to WebRTC r6818 #3514
Workflow file for this run
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
name: Android | |
on: [push] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- name: Android armeabi-v7a | |
maketarget: android-armeabi-v7a | |
arch: armeabi-v7a | |
- name: Android arm64-v8a | |
maketarget: android-arm64-v8a | |
arch: arm64-v8a | |
- name: Android x86 | |
maketarget: android-x86 | |
arch: x86 | |
- name: Android x86_64 | |
maketarget: android-x64 | |
arch: x86_64 | |
runs-on: ubuntu-22.04 | |
name: ${{ matrix.name }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- uses: nttld/setup-ndk@v1 | |
id: setup-ndk | |
with: | |
ndk-version: r21e | |
add-to-path: false | |
- name: Refresh Ubuntu-repo | |
run: sudo apt update | |
- name: Print env | |
run: printenv | sort | |
- name: Install TeamTalk Library Dependencies | |
working-directory: ${{runner.workspace}}/TeamTalk5 | |
run: sudo make -C Build depend-ubuntu22-android | |
- name: Build TeamTalk Library for Android | |
working-directory: ${{runner.workspace}}/TeamTalk5/Build | |
run: | | |
make CMAKE_EXTRA="-DFEATURE_WEBRTC=OFF -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-${{ matrix.maketarget }}" ${{ matrix.maketarget }} | |
env: | |
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | |
- name: Build TeamTalk 5 Java Tests | |
working-directory: ${{runner.workspace}} | |
run: | | |
cmake -S ${{runner.workspace}}/TeamTalk5 -B build-host -DBUILD_TEAMTALK_CORE=OFF | |
cmake --build build-host --target TeamTalk5Test | |
cmake --build build-host --target TeamTalk5ProTest | |
cmake --build build-host --target TeamTalk5SrvTest | |
- name: Build TeamTalk Android Client | |
working-directory: ${{runner.workspace}}/TeamTalk5/Client/TeamTalkAndroid | |
run: | | |
ln -s ${{runner.workspace}}/TeamTalk5/Library/TeamTalkJNI/libs/TeamTalk5.jar ${{runner.workspace}}/TeamTalk5/Client/TeamTalkAndroid/libs/TeamTalk5.jar | |
ln -s ${{runner.workspace}}/TeamTalk5/Library/TeamTalkJNI/libs/TeamTalk5Test.jar ${{runner.workspace}}/TeamTalk5/Client/TeamTalkAndroid/libs/TeamTalk5Test.jar | |
ln -s ${{runner.workspace}}/TeamTalk5/Library/TeamTalkJNI/libs/${{ matrix.arch }}/libTeamTalk5-jni.so ${{runner.workspace}}/TeamTalk5/Client/TeamTalkAndroid/src/main/jniLibs/${{ matrix.arch }}/libTeamTalk5-jni.so | |
./gradlew build -x packageRelease | |
- name: Run CMake Install Target | |
working-directory: ${{runner.workspace}}/TeamTalk5/Build/build-${{ matrix.maketarget }} | |
run: cmake --build . --target install | |
- name: Upload TeamTalk Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: teamtalksdk-${{ matrix.maketarget }} | |
path: ${{runner.workspace}}/install-${{ matrix.maketarget }} |