55
55
rust :
56
56
- stable
57
57
- beta
58
- # TODO: unpin nightly. There was a regression in
59
- # https://github.com/rust-lang/rust/compare/1cec373f6...becebb315 that causes
60
- # tests/btf/assembly/anon_struct_c.rs to fail to link.
61
- - nightly-2024-04-16
58
+ - nightly
62
59
llvm :
63
- - 18
60
+ - 19
64
61
- source
65
62
name : rustc=${{ matrix.rust }} llvm=${{ matrix.llvm }}
66
63
needs : llvm
@@ -121,7 +118,7 @@ jobs:
121
118
echo -e deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${{ matrix.llvm }} main | sudo tee /etc/apt/sources.list.d/llvm.list
122
119
123
120
sudo apt update
124
- sudo apt -y install llvm-${{ matrix.llvm }}-dev
121
+ sudo apt -y install llvm-${{ matrix.llvm }}-dev libpolly-${{ matrix.llvm }}-dev
125
122
echo /usr/lib/llvm-${{ matrix.llvm }}/bin >> $GITHUB_PATH
126
123
127
124
- name : Restore LLVM
@@ -152,15 +149,29 @@ jobs:
152
149
- uses : taiki-e/install-action@cargo-hack
153
150
154
151
- name : Check
152
+ if : matrix.llvm == 'source'
155
153
run : cargo hack check --feature-powerset --features llvm-sys/force-dynamic
156
154
155
+ - name : Check
156
+ if : matrix.llvm != 'source'
157
+ run : cargo hack check --feature-powerset
158
+
157
159
- name : Build
160
+ if : matrix.llvm == 'source'
158
161
run : cargo hack build --feature-powerset --features llvm-sys/force-dynamic
159
162
163
+ - name : Build
164
+ if : matrix.llvm != 'source'
165
+ run : cargo hack build --feature-powerset
166
+
160
167
- name : Test
161
- if : matrix.rust == 'nightly'
168
+ if : matrix.llvm == 'source' && matrix. rust == 'nightly'
162
169
run : cargo hack test --feature-powerset --features llvm-sys/force-dynamic
163
170
171
+ - name : Test
172
+ if : matrix.llvm != 'source' && matrix.rust == 'nightly'
173
+ run : cargo hack test --feature-powerset
174
+
164
175
- uses : actions/checkout@v4
165
176
if : matrix.rust == 'nightly'
166
177
with :
@@ -169,9 +180,13 @@ jobs:
169
180
submodules : recursive
170
181
171
182
- name : Install
172
- if : matrix.rust == 'nightly'
183
+ if : matrix.llvm == 'source' && matrix. rust == 'nightly'
173
184
run : cargo install --path . --no-default-features --features llvm-sys/force-dynamic
174
185
186
+ - name : Install
187
+ if : matrix.llvm != 'source' && matrix.rust == 'nightly'
188
+ run : cargo install --path . --no-default-features
189
+
175
190
# TODO: Remove this and run the integration tests on the local machine when they pass on 5.15.
176
191
- name : Download debian kernels
177
192
if : matrix.rust == 'nightly' && runner.arch == 'ARM64'
0 commit comments