@@ -18,11 +18,18 @@ jobs:
18
18
matrix :
19
19
toolchain : [stable, nightly]
20
20
platform :
21
- - { target: aarch64-apple-darwin, os: macos-14 }
22
- - { target: x86_64-apple-darwin, os: macos-13 }
23
- - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest }
24
- - { target: aarch64-unknown-linux-gnu, os: ubuntu-latest }
25
- - { target: x86_64-pc-windows-msvc, os: windows-latest }
21
+ # native targets
22
+ - { target: aarch64-apple-darwin, os: macos-14, native: true }
23
+ - { target: x86_64-apple-darwin, os: macos-13, native: true }
24
+ - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, native: true }
25
+ - { target: x86_64-pc-windows-msvc, os: windows-latest, native: true }
26
+ # arm64 linux
27
+ - { target: aarch64-unknown-linux-gnu, os: ubuntu-latest, native: false }
28
+ # all servo's android targets
29
+ - { target: aarch64-linux-android, os: ubuntu-latest, native: false }
30
+ - { target: armv7-linux-androideabi, os: ubuntu-latest, native: false }
31
+ - { target: i686-linux-android, os: ubuntu-latest, native: false }
32
+ - { target: x86_64-linux-android, os: ubuntu-latest, native: false }
26
33
runs-on : ${{ matrix.platform.os }}
27
34
env :
28
35
HARFBUZZ_SYS_NO_PKG_CONFIG : true
@@ -38,22 +45,22 @@ jobs:
38
45
sudo apt-get update
39
46
sudo apt-get install -y libegl1-mesa-dev libgtk-3-dev libsdl2-dev cmake
40
47
41
- - name : Build arm64 simd
42
- if : ${{ matrix.platform.target == 'aarch64-unknown-linux-gnu' }}
48
+ - name : Build simd
49
+ if : ${{ ! matrix.platform.native }}
43
50
run : cargo build --target ${{ matrix.platform.target }}
44
51
working-directory : simd
45
52
46
- - name : Build arm64 geometry
47
- if : ${{ matrix.platform.target == 'aarch64-unknown-linux-gnu' }}
53
+ - name : Build geometry
54
+ if : ${{ ! matrix.platform.native }}
48
55
run : cargo build --target ${{ matrix.platform.target }}
49
56
working-directory : geometry
50
57
51
58
- name : Build
52
- if : ${{ matrix.platform.target != 'aarch64-unknown-linux-gnu' }}
59
+ if : ${{ matrix.platform.native }}
53
60
run : cargo build --target ${{ matrix.platform.target }}
54
61
55
62
- name : Test
56
- if : ${{ matrix.platform.target != 'aarch64-unknown-linux-gnu' }}
63
+ if : ${{ matrix.platform.native }}
57
64
run : cargo test
58
65
59
66
build_result :
0 commit comments