Skip to content

Commit

Permalink
CI: Run tests in android emulator
Browse files Browse the repository at this point in the history
  • Loading branch information
hmelder committed Jul 9, 2024
1 parent 8ba5f23 commit e67daa8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,18 @@ jobs:
working-directory: ${{github.workspace}}/build
run: |
NINJA_STATUS="%p [%f:%s/%t] %o/s, %es" ninja -v
- name: Test
uses: reactivecircus/android-emulator-runner@v2
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
with:
api-level: ${{ matrix.api-level }}
target: default
arch: ${{ matrix.arch.name }}
script: |
export TOOLCHAIN=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64
export SYSROOT=$TOOLCHAIN/sysroot
${{github.workspace}}/.github/scripts/android_test_main.sh ${{github.workspace}}/build $SYSROOT ${{ matrix.arch.triple }}
# Fake check that can be used as a branch-protection rule.
Expand Down

0 comments on commit e67daa8

Please sign in to comment.