Skip to content

Commit

Permalink
Switch android builds to ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
giarc3 committed Nov 25, 2024
1 parent d3a7705 commit 12eb417
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
working-directory: java/tests

android-build:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
matrix:
arch: [i686-linux-android, x86_64-linux-android, aarch64-linux-android]
Expand Down Expand Up @@ -81,8 +81,7 @@ jobs:
# - api-level 30 is stabilized, as that allows x86_64 to run arm64-v8a
android-test:
needs: android-build
# reactivecircus/android-emulator-runner@v2 only works on Mac.
runs-on: macos-13
runs-on: ubuntu-latest
strategy:
matrix:
api-level: [24, 29]
Expand All @@ -96,17 +95,24 @@ jobs:
name: ${{ matrix.arch }}
- name: Unzip Android build
run: unzip -o android_build.zip -d android/ironoxide-android/src/main
# Taken from https://github.com/ReactiveCircus/android-emulator-runner/blob/main/README.md
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
with:
working-directory: ./android
arch: ${{ matrix.arch }}
api-level: ${{ matrix.api-level }}
ndk: "26.3.11579264" # matches android/ironoxide-android/build.gradle
script: ./gradlew connectedAndroidTest

# This tests that gradle can build ironoxide-android so we can catch issues before release.
android-release-test:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run build script
Expand Down

0 comments on commit 12eb417

Please sign in to comment.