13
13
14
14
jobs :
15
15
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
18
18
env :
19
19
RUST_BACKTRACE : 1
20
20
strategy :
21
21
fail-fast : false
22
22
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
- }
36
23
features :
37
24
[
38
25
" " ,
@@ -45,14 +32,13 @@ jobs:
45
32
id : toolchain
46
33
uses : dtolnay/rust-toolchain@1.81.0
47
34
with :
48
- targets : ${{ matrix.platform.target }}
35
+ targets : x86_64-linux-android
49
36
50
37
- uses : taiki-e/install-action@v2
51
38
with :
52
39
tool : cargo-dinghy
53
40
54
41
- name : Enable KVM
55
- if : ${{ contains(matrix.platform.os, 'ubuntu') }}
56
42
run : |
57
43
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
58
44
sudo udevadm control --reload-rules
65
51
path : |
66
52
~/.android/avd/*
67
53
~/.android/adb*
68
- key : avd-25-${{ github.workflow }}-${{ github.job }}-${{ runner.os }}-${{runner.arch}}
54
+ key : avd-30
69
55
70
56
- name : Create directory for avd
71
57
# This shouldn't be necesary but this is a work around for
77
63
if : steps.avd-cache.outputs.cache-hit != 'true'
78
64
uses : reactivecircus/android-emulator-runner@v2
79
65
with :
80
- api-level : 25
66
+ api-level : 30
81
67
force-avd-creation : false
82
- arch : ${{ matrix.platform.avd_arch }}
68
+ arch : x86_64
83
69
emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
84
70
disable-animations : false
85
71
script : echo "Generated AVD snapshot for caching."
@@ -89,15 +75,15 @@ jobs:
89
75
env :
90
76
RANLIB : " ${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ranlib"
91
77
with :
92
- api-level : 25
93
- arch : ${{ matrix.platform.avd_arch }}
78
+ api-level : 30
79
+ arch : x86_64
94
80
force-avd-creation : false
95
81
emulator-options : -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
96
82
disable-animations : true
97
83
script : |
98
84
cargo dinghy all-platforms
99
85
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
101
87
Format :
102
88
name : Run `rustfmt`
103
89
runs-on : ubuntu-24.04
0 commit comments