@@ -16,43 +16,36 @@ jobs:
16
16
strategy :
17
17
fail-fast : false
18
18
matrix :
19
+ toolchain : ['stable', 'nightly']
19
20
include :
20
21
- { target: aarch64-apple-darwin, os: macos-14 }
21
22
- { target: x86_64-apple-darwin, os: macos-13 }
22
23
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest }
23
24
- { target: aarch64-unknown-linux-gnu, os: ubuntu-latest }
24
25
- { target: x86_64-pc-windows-msvc, os: windows-latest }
25
- runs-on : ${{ matrix.platform. os }}
26
+ runs-on : ${{ matrix.os }}
26
27
env :
27
28
HARFBUZZ_SYS_NO_PKG_CONFIG : true
28
29
steps :
29
30
- uses : actions/checkout@v4
30
- - uses : actions-rs/ toolchain@v1
31
+ - uses : dtolnay/rust- toolchain@v1
31
32
with :
32
- toolchain : stable
33
- override : true
34
- profile : minimal
35
-
33
+ toolchain : ${{ matrix.toolchain }}
34
+ target : ${{ matrix.target }}
36
35
- name : Install packages
36
+ if : ${{ matrix.os == 'ubuntu-latest' }}
37
37
run : |
38
38
sudo apt-get update
39
39
sudo apt-get install -y libegl1-mesa-dev libgtk-3-dev libsdl2-dev cmake
40
40
41
41
- name : Install rustc target
42
42
run : rustup target add aarch64-unknown-linux-gnu
43
-
44
- - name : Build arm64 simd
45
- run : cargo build --target aarch64-unknown-linux-gnu
46
- working-directory : simd
47
-
48
- - name : Build arm64 geometry
49
- run : cargo build --target aarch64-unknown-linux-gnu
50
- working-directory : geometry
51
43
52
44
- name : Build
53
- run : cargo build
45
+ run : cargo build --target ${{ matrix.target }}
54
46
55
47
- name : Test
48
+ if : ${{ matrix.target != 'aarch64-unknown-linux-gnu' }}
56
49
run : cargo test
57
50
58
51
build_result :
0 commit comments