32
32
# NOTE vmx 2024-07-15: Use at least Rust 1.68.2 for now, so that we can use the sparse
33
33
# index. Without this, the build times out. Once the MSRV is >= 1.68.2, we don't need
34
34
# to special case anymore and can use the MSRV instead.
35
- rust : 1.68.2
35
+ toolchain : 1.68.2
36
36
arch : aarch64
37
37
38
38
runs-on : ubuntu-22.04
@@ -55,12 +55,12 @@ jobs:
55
55
install : |
56
56
apt-get update -q -y
57
57
apt-get install -q -y ocl-icd-opencl-dev curl build-essential
58
- curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.rust }} -y
58
+ curl https://sh.rustup.rs -sSf | sh -s -- --profile minimal --default-toolchain ${{ matrix.toolchain }} -y
59
59
source $HOME/.cargo/env
60
60
61
61
run : |
62
62
echo "vmx: one"
63
- $HOME/.cargo/bin/rustup override set ${{ matrix.rust }}
63
+ $HOME/.cargo/bin/rustup override set ${{ matrix.toolchain }}
64
64
echo "vmx: two"
65
65
$HOME/.cargo/bin/cargo test --release --target ${{ matrix.target }}
66
66
echo "vmx: three"
@@ -75,24 +75,24 @@ jobs:
75
75
include :
76
76
# 32-bit Linux/x86
77
77
- target : i686-unknown-linux-gnu
78
- rust : ${{needs.set-msrv.outputs.msrv}}
78
+ toolchain : ${{needs.set-msrv.outputs.msrv}}
79
79
deps : sudo apt update && sudo apt install gcc-multilib
80
80
- target : i686-unknown-linux-gnu
81
- rust : stable
81
+ toolchain : stable
82
82
deps : sudo apt update && sudo apt install gcc-multilib
83
83
84
84
# 64-bit Linux/x86_64
85
85
- target : x86_64-unknown-linux-gnu
86
- rust : ${{needs.set-msrv.outputs.msrv}}
86
+ toolchain : ${{needs.set-msrv.outputs.msrv}}
87
87
- target : x86_64-unknown-linux-gnu
88
- rust : stable
88
+ toolchain : stable
89
89
90
90
runs-on : ubuntu-latest
91
91
steps :
92
92
- uses : actions/checkout@v4
93
93
- uses : dtolnay/rust-toolchain@master
94
94
with :
95
- toolchain : ${{ matrix.rust }}
95
+ toolchain : ${{ matrix.toolchain }}
96
96
target : ${{ matrix.target }}
97
97
- name : Install opencl
98
98
run : sudo apt-get install -y ocl-icd-opencl-dev
@@ -114,7 +114,7 @@ jobs:
114
114
- uses : actions/checkout@v4
115
115
- uses : dtolnay/rust-toolchain@master
116
116
with :
117
- toolchain : ${{ matrix.rust }}
117
+ toolchain : ${{ matrix.toolchain }}
118
118
target : x86_64-apple-darwin
119
119
- run : cargo test
120
120
- run : cargo test --features portable
@@ -134,7 +134,7 @@ jobs:
134
134
- uses : actions/checkout@v4
135
135
- uses : dtolnay/rust-toolchain@master
136
136
with :
137
- toolchain : ${{ matrix.rust }}
137
+ toolchain : ${{ matrix.toolchain }}
138
138
target : ${{ matrix.target }}
139
139
- uses : msys2/setup-msys2@v2
140
140
- run : cargo test --target ${{ matrix.target }}
@@ -146,7 +146,7 @@ jobs:
146
146
- uses : actions/checkout@v4
147
147
- uses : dtolnay/rust-toolchain@master
148
148
with :
149
- toolchain : ${{ matrix.rust }}
149
+ toolchain : ${{ needs.set-msrv.outputs.msrv }}
150
150
components : clippy
151
151
- name : Clippy
152
152
run : cargo clippy --all-features
@@ -159,7 +159,7 @@ jobs:
159
159
160
160
- uses : dtolnay/rust-toolchain@master
161
161
with :
162
- toolchain : ${{ matrix.rust }}
162
+ toolchain : ${{ needs.set-msrv.outputs.msrv }}
163
163
components : rustfmt
164
164
165
165
- name : setup
0 commit comments