Skip to content

Commit b0aaea5

Browse files
committed
all
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
1 parent 3310872 commit b0aaea5

File tree

1 file changed

+9
-23
lines changed

1 file changed

+9
-23
lines changed

.github/workflows/main.yml

+9-23
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,13 @@ env:
1313

1414
jobs:
1515
android-test:
16-
name: ${{ format('{0} {1}', matrix.platform.target, matrix.features)}}
17-
runs-on: ${{ matrix.platform.os }}
16+
name: ${{ format('x86_64-linux-android {1}', matrix.features)}}
17+
runs-on: ubuntu-24.04
1818
env:
1919
RUST_BACKTRACE: 1
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
platform:
24-
- {
25-
target: aarch64-linux-android,
26-
avd_arch: arm64-v8a,
27-
arch: aarch64,
28-
os: macos-13,
29-
}
30-
- {
31-
target: x86_64-linux-android,
32-
avd_arch: x86_64,
33-
arch: x86_64,
34-
os: ubuntu-24.04,
35-
}
3623
features:
3724
[
3825
"",
@@ -45,14 +32,13 @@ jobs:
4532
id: toolchain
4633
uses: dtolnay/rust-toolchain@1.81.0
4734
with:
48-
targets: ${{ matrix.platform.target }}
35+
targets: x86_64-linux-android
4936

5037
- uses: taiki-e/install-action@v2
5138
with:
5239
tool: cargo-dinghy
5340

5441
- name: Enable KVM
55-
if: ${{ contains(matrix.platform.os, 'ubuntu') }}
5642
run: |
5743
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
5844
sudo udevadm control --reload-rules
@@ -65,7 +51,7 @@ jobs:
6551
path: |
6652
~/.android/avd/*
6753
~/.android/adb*
68-
key: avd-25-${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-${{runner.arch}}
54+
key: avd-30
6955

7056
- name: Create directory for avd
7157
# This shouldn't be necesary but this is a work around for
@@ -77,9 +63,9 @@ jobs:
7763
if: steps.avd-cache.outputs.cache-hit != 'true'
7864
uses: reactivecircus/android-emulator-runner@v2
7965
with:
80-
api-level: 25
66+
api-level: 30
8167
force-avd-creation: false
82-
arch: ${{ matrix.platform.avd_arch }}
68+
arch: x86_64
8369
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
8470
disable-animations: false
8571
script: echo "Generated AVD snapshot for caching."
@@ -89,15 +75,15 @@ jobs:
8975
env:
9076
RANLIB: "${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib"
9177
with:
92-
api-level: 25
93-
arch: ${{ matrix.platform.avd_arch }}
78+
api-level: 30
79+
arch: x86_64
9480
force-avd-creation: false
9581
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
9682
disable-animations: true
9783
script: |
9884
cargo dinghy all-platforms
9985
cargo dinghy all-devices
100-
cargo dinghy -p auto-android-${{ matrix.platform.arch }}-api25 test --features "${{ matrix.features }}" -- --test-threads 1
86+
cargo dinghy -p auto-android-x86_64-api30 test --features "${{ matrix.features }}" -- --test-threads 1 && killall -INT crashpad_handler || true
10187
Format:
10288
name: Run `rustfmt`
10389
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)