17
17
name : Test
18
18
strategy :
19
19
matrix :
20
- include :
21
- - os : ubuntu-24.04
22
- target : x86_64-unknown-linux-gnu
23
- - os : windows-2022
24
- target : x86_64-pc-windows-msvc
25
- - os : macOS-latest
26
- target : aarch64-apple-darwin
20
+ os : [ ubuntu-24.04 windows-2022 macOS-latest ]
27
21
runs-on : ${{ matrix.os }}
28
22
env :
29
23
RUSTUP_UNPACK_RAM : " 26214400"
@@ -38,13 +32,16 @@ jobs:
38
32
- if : ${{ runner.os == 'Linux' }}
39
33
name : Linux - Install native dependencies
40
34
run : sudo apt install libwayland-cursor0 libxkbcommon-dev libwayland-dev
41
- # cargo version is a random command that forces the installation of rust-toolchain
35
+ # just need a random command that forces the installation of rust-toolchain
36
+ # figure out native target triple while we're at it
42
37
- name : install rust-toolchain
43
- run : cargo version
38
+ run : |
39
+ export TARGET=`rustc --print host-tuple`
40
+ echo $TARGET
44
41
# Fetch dependencies in a separate step to clearly show how long each part
45
42
# of the testing takes
46
43
- name : cargo fetch --locked
47
- run : cargo fetch --locked --target ${{ matrix.target }}
44
+ run : cargo fetch --locked --target $TARGET
48
45
49
46
# Core crates
50
47
# Compiled in --release because cargo compiletest would otherwise compile in release again.
83
80
include :
84
81
- os : ubuntu-24.04
85
82
target : aarch64-linux-android
86
- host : x86_64-unknown-linux-gnu
87
83
runs-on : ${{ matrix.os }}
88
84
env :
89
85
RUSTUP_UNPACK_RAM : " 26214400"
95
91
with :
96
92
version : 1.4.309.0
97
93
cache : true
98
- # cargo version is a random command that forces the installation of rust-toolchain
99
94
- name : install rust-toolchain
100
95
run : cargo version
101
- # Fetch dependencies in a separate step to clearly show how long each part
102
- # of the testing takes
103
96
- name : cargo fetch --locked
104
97
run : cargo fetch --locked --target ${{ matrix.target }}
105
98
@@ -130,13 +123,7 @@ jobs:
130
123
name : Compiletest
131
124
strategy :
132
125
matrix :
133
- include :
134
- - os : ubuntu-24.04
135
- target : x86_64-unknown-linux-gnu
136
- - os : windows-2022
137
- target : x86_64-pc-windows-msvc
138
- - os : macOS-latest
139
- target : aarch64-apple-darwin
126
+ os : [ ubuntu-24.04 windows-2022 macOS-latest ]
140
127
runs-on : ${{ matrix.os }}
141
128
steps :
142
129
- uses : actions/checkout@v4
@@ -145,25 +132,20 @@ jobs:
145
132
with :
146
133
version : 1.4.309.0
147
134
cache : true
148
- # cargo version is a random command that forces the installation of rust-toolchain
149
135
- name : install rust-toolchain
150
- run : cargo version
136
+ run : |
137
+ export TARGET=`rustc --print host-tuple`
138
+ echo $TARGET
151
139
- name : cargo fetch --locked
152
- run : cargo fetch --locked --target ${{ matrix.target }}
140
+ run : cargo fetch --locked --target $TARGET
153
141
- name : compiletest
154
142
run : cargo run -p compiletests --release --no-default-features --features "use-installed-tools" -- --target-env vulkan1.1,vulkan1.2,spv1.3
155
143
156
144
difftest :
157
145
name : Difftest
158
146
strategy :
159
147
matrix :
160
- include :
161
- - os : ubuntu-24.04
162
- target : x86_64-unknown-linux-gnu
163
- - os : windows-2022
164
- target : x86_64-pc-windows-msvc
165
- - os : macOS-latest
166
- target : aarch64-apple-darwin
148
+ os : [ ubuntu-24.04 windows-2022 macOS-latest ]
167
149
runs-on : ${{ matrix.os }}
168
150
steps :
169
151
- uses : actions/checkout@v4
@@ -182,13 +164,14 @@ jobs:
182
164
sudo add-apt-repository ppa:kisak/turtle -y
183
165
sudo apt-get update
184
166
sudo apt install -y xvfb libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
185
- # cargo version is a random command that forces the installation of rust-toolchain
186
167
- name : install rust-toolchain
187
- run : cargo version
168
+ run : |
169
+ export TARGET=`rustc --print host-tuple`
170
+ echo $TARGET
188
171
- name : cargo fetch --locked
189
- run : cargo fetch --locked --target ${{ matrix.target }}
172
+ run : cargo fetch --locked --target $TARGET
190
173
- name : cargo fetch --locked difftests
191
- run : cargo fetch --locked --manifest-path=tests/difftests/tests/Cargo.toml --target ${{ matrix.target }}
174
+ run : cargo fetch --locked --manifest-path=tests/difftests/tests/Cargo.toml --target $TARGET
192
175
- name : test difftest
193
176
run : cargo test -p "difftest*" --release --no-default-features --features "use-installed-tools"
194
177
- name : difftests
0 commit comments