@@ -37,13 +37,20 @@ jobs:
3737 contents : read
3838 strategy :
3939 matrix :
40- build : [x86_64-linux, aarch64-linux, x86_64-macos, aarch64-macos, x86_64-win-msvc]
40+ build :
41+ [
42+ x86_64-linux,
43+ aarch64-linux,
44+ x86_64-macos,
45+ aarch64-macos,
46+ x86_64-win-msvc,
47+ ]
4148 include :
4249 - build : x86_64-linux
4350 os : ubuntu-latest
4451 target : x86_64-unknown-linux-gnu
4552 - build : aarch64-linux
46- os : ubuntu-latest
53+ os : ubuntu-24.04-arm
4754 target : aarch64-unknown-linux-gnu
4855 - build : x86_64-macos
4956 os : macos-latest
@@ -69,29 +76,15 @@ jobs:
6976 with :
7077 key : ${{ matrix.target }}
7178
72- - name : Install cross for arm64 compilation
73- if : matrix.build == 'aarch64-linux'
74- run : cargo install cross --git https://github.com/cross-rs/cross
75-
76- - name : Install Dependencies for Linux x86_64
77- if : matrix.build == 'x86_64-linux'
79+ - name : Install Dependencies for Linux
80+ if : contains(matrix.build, 'linux')
7881 run : sudo apt update && sudo apt install -y libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev
7982
80- - name : Run tests (arm64)
81- if : matrix.build == 'aarch64-linux'
82- run : cross test --locked --target ${{ matrix.target }}
83-
84- - name : Build debug binary (arm64)
85- if : matrix.build == 'aarch64-linux'
86- run : cross build --locked --target ${{ matrix.target }}
87-
88- - name : Run tests (x86_64)
89- if : matrix.build != 'aarch64-linux'
90- run : cargo test
83+ - name : Run tests
84+ run : cargo test --locked
9185
92- - name : Build debug binary (x86_64)
93- if : matrix.build != 'aarch64-linux'
94- run : cargo build
86+ - name : Build debug binary
87+ run : cargo build --locked
9588
9689 - uses : actions/upload-artifact@v7.0.0
9790 with :
0 commit comments