@@ -16,36 +16,33 @@ jobs:
16
16
strategy :
17
17
fail-fast : false
18
18
matrix :
19
- toolchain : [' stable', ' nightly' ]
20
- include :
19
+ toolchain : [stable, nightly]
20
+ platform :
21
21
- { target: aarch64-apple-darwin, os: macos-14 }
22
22
- { target: x86_64-apple-darwin, os: macos-13 }
23
23
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest }
24
24
- { target: aarch64-unknown-linux-gnu, os: ubuntu-latest }
25
25
- { target: x86_64-pc-windows-msvc, os: windows-latest }
26
- runs-on : ${{ matrix.os }}
26
+ runs-on : ${{ matrix.platform. os }}
27
27
env :
28
28
HARFBUZZ_SYS_NO_PKG_CONFIG : true
29
29
steps :
30
30
- uses : actions/checkout@v4
31
31
- uses : dtolnay/rust-toolchain@v1
32
32
with :
33
33
toolchain : ${{ matrix.toolchain }}
34
- target : ${{ matrix.target }}
34
+ target : ${{ matrix.platform. target }}
35
35
- name : Install packages
36
- if : ${{ matrix.os == 'ubuntu-latest' }}
36
+ if : ${{ matrix.platform. 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
-
41
- - name : Install rustc target
42
- run : rustup target add aarch64-unknown-linux-gnu
43
40
44
41
- name : Build
45
- run : cargo build --target ${{ matrix.target }}
42
+ run : cargo build --target ${{ matrix.platform. target }}
46
43
47
44
- name : Test
48
- if : ${{ matrix.target != 'aarch64-unknown-linux-gnu' }}
45
+ if : ${{ matrix.platform. target != 'aarch64-unknown-linux-gnu' }}
49
46
run : cargo test
50
47
51
48
build_result :
0 commit comments