Skip to content

Commit

Permalink
Run android tests on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
erkkah committed Apr 13, 2024
1 parent 73c7bd8 commit 54f75e5
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,36 @@ jobs:

build:
name: Test
runs-on: macos-latest
runs-on: ubuntu-latest
strategy:
matrix:
api-level: [29]

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: 1.19

- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- 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
# - uses: actions/setup-java@v3
# with:
# java-version: '11'
# distribution: 'temurin'

- name: Gradle cache
uses: gradle/actions/setup-gradle@v3

- name: AVD cache
uses: actions/cache@v3
uses: actions/cache@v4
id: avd-cache
with:
path: |
Expand All @@ -58,6 +67,7 @@ jobs:
with:
working-directory: ./testrig/android
api-level: ${{ matrix.api-level }}
ndk: 25.2.9519653
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
Expand Down

0 comments on commit 54f75e5

Please sign in to comment.