7
7
BUILD : build
8
8
RUSTFLAGS : -D warnings
9
9
RUSTDOCFLAGS : -D warnings
10
- PLUS : +
11
10
TOOL : cargo
12
- # The MSRV
13
- TOOLCHAIN : 1.63.0
11
+ MSRV : 1.63.0
14
12
ZFLAGS :
15
13
16
14
# Tests that don't require executing the build binaries
17
15
build : &BUILD
18
16
build_script :
19
17
- . $HOME/.cargo/env || true
20
- - $TOOL $PLUS $TOOLCHAIN -Vv
21
- - rustc $PLUS $TOOLCHAIN -Vv
22
- - $TOOL $PLUS $TOOLCHAIN $ BUILD $ZFLAGS --target $TARGET --all-targets
23
- - $TOOL $PLUS $TOOLCHAIN doc $ZFLAGS --no-deps --target $TARGET
24
- - $TOOL $PLUS $TOOLCHAIN clippy $ZFLAGS --target $TARGET --all-targets -- -D warnings
18
+ - $TOOL -Vv
19
+ - rustc -Vv
20
+ - $TOOL $BUILD $ZFLAGS --target $TARGET --all-targets
21
+ - $TOOL doc $ZFLAGS --no-deps --target $TARGET
22
+ - $TOOL clippy $ZFLAGS --target $TARGET --all-targets -- -D warnings
25
23
- if [ -z "$NOHACK" ]; then mkdir -p $HOME/.cargo/bin; export PATH=$HOME/.cargo/bin:$PATH; fi
26
24
- if [ -z "$NOHACK" ]; then curl -LsSf https://github.com/taiki-e/cargo-hack/releases/latest/download/cargo-hack-${HOST:-$TARGET}.tar.gz | tar xzf - -C ~/.cargo/bin; fi
27
- - if [ -z "$NOHACK" ]; then $TOOL $PLUS $TOOLCHAIN hack $ZFLAGS check --target $TARGET --each-feature; fi
25
+ - if [ -z "$NOHACK" ]; then $TOOL hack $ZFLAGS check --target $TARGET --each-feature; fi
28
26
29
27
# Tests that do require executing the binaries
30
28
test : &TEST
31
29
<< : *BUILD
32
30
test_script :
33
31
- . $HOME/.cargo/env || true
34
- - $TOOL $PLUS $TOOLCHAIN test --target $TARGET
32
+ - $TOOL test --target $TARGET
35
33
36
34
# Test FreeBSD in a full VM. Test the i686 target too, in the
37
35
# same VM. The binary will be built in 32-bit mode, but will execute on a
@@ -53,10 +51,10 @@ test: &TEST
53
51
# setup_script:
54
52
# - kldload mqueuefs
55
53
# - fetch https://sh.rustup.rs -o rustup.sh
56
- # - sh rustup.sh -y --profile=minimal --default-toolchain $TOOLCHAIN
54
+ # - sh rustup.sh -y --profile=minimal --default-toolchain $MSRV
57
55
# - . $HOME/.cargo/env
58
56
# - rustup target add i686-unknown-freebsd
59
- # - rustup component add --toolchain $TOOLCHAIN clippy
57
+ # - rustup component add clippy
60
58
# << : *TEST
61
59
# i386_test_script:
62
60
# - . $HOME/.cargo/env
@@ -68,20 +66,20 @@ test: &TEST
68
66
# - if [ -z "$NOHACK" ]; then cargo hack check --each-feature --target i686-unknown-freebsd; fi
69
67
# before_cache_script: rm -rf $CARGO_HOME/registry/index
70
68
71
- # # Test macOS aarch64 in a full VM
72
- # task:
73
- # name: macOS aarch64
74
- # env:
75
- # TARGET: aarch64-apple-darwin
76
- # macos_instance:
77
- # image: ghcr.io/cirruslabs/macos-ventura-base:latest
78
- # setup_script:
79
- # - curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs
80
- # - sh rustup.sh -y --profile=minimal --default-toolchain $TOOLCHAIN
81
- # - . $HOME/.cargo/env
82
- # - rustup component add --toolchain $TOOLCHAIN clippy
83
- # << : *TEST
84
- # before_cache_script: rm -rf $CARGO_HOME/registry/index
69
+ # Test macOS aarch64 in a full VM
70
+ task :
71
+ name : macOS aarch64
72
+ env :
73
+ TARGET : aarch64-apple-darwin
74
+ macos_instance :
75
+ image : ghcr.io/cirruslabs/macos-ventura-base:latest
76
+ setup_script :
77
+ - curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs
78
+ - sh rustup.sh -y --profile=minimal --default-toolchain $MSRV
79
+ - . $HOME/.cargo/env
80
+ - rustup component add clippy
81
+ << : *TEST
82
+ before_cache_script : rm -rf $CARGO_HOME/registry/index
85
83
86
84
# Use cross for QEMU-based testing
87
85
# cross needs to execute Docker, so we must use Cirrus's Docker Builder task.
@@ -130,7 +128,7 @@ task:
130
128
setup_script :
131
129
- mkdir /tmp/home
132
130
- curl --proto '=https' --tlsv1.2 -sSf -o rustup.sh https://sh.rustup.rs
133
- - sh rustup.sh -y --profile=minimal --default-toolchain $TOOLCHAIN
131
+ - sh rustup.sh -y --profile=minimal --default-toolchain $MSRV
134
132
- . $HOME/.cargo/env
135
133
- cargo install cross --version 0.2.1 # cross 0.2.2 bumped the MSRV to 1.58.1
136
134
<< : *TEST
@@ -166,8 +164,6 @@ task:
166
164
image : rust:latest
167
165
env :
168
166
TARGET : x86_64-unknown-linux-gnu
169
- TOOLCHAIN :
170
- PLUS :
171
167
setup_script :
172
168
- rustup component add clippy
173
169
- rustup toolchain list
@@ -245,28 +241,25 @@ task:
245
241
TARGET : x86_64-unknown-netbsd
246
242
setup_script :
247
243
- rustup target add $TARGET
248
- - rustup toolchain install $TOOLCHAIN --profile minimal --target $TARGET
249
- - rustup component add --toolchain $TOOLCHAIN clippy
244
+ - rustup component add clippy
250
245
<< : *BUILD
251
246
before_cache_script : rm -rf $CARGO_HOME/registry/index
252
247
253
- # task:
254
- # container:
255
- # image: rust:1.63.0
256
- # env:
257
- # BUILD: check
258
- # name: Redox x86_64
259
- # env:
260
- # HOST: x86_64-unknown-linux-gnu
261
- # TARGET: x86_64-unknown-redox
262
- # # Redox's MSRV policy is unclear. Until they define it, use nightly.
263
- # TOOLCHAIN: nightly
264
- # setup_script:
265
- # - rustup target add $TARGET
266
- # - rustup toolchain install $TOOLCHAIN --profile minimal --target $TARGET
267
- # - rustup component add --toolchain $TOOLCHAIN clippy
268
- # << : *BUILD
269
- # before_cache_script: rm -rf $CARGO_HOME/registry/index
248
+ task :
249
+ container :
250
+ # Redox's MSRV policy is unclear. Until they define it, use nightly.
251
+ image : rustlang/rust:nightly
252
+ env :
253
+ BUILD : check
254
+ name : Redox x86_64
255
+ env :
256
+ HOST : x86_64-unknown-linux-gnu
257
+ TARGET : x86_64-unknown-redox
258
+ setup_script :
259
+ - rustup target add $TARGET
260
+ - rustup component add clippy
261
+ << : *BUILD
262
+ before_cache_script : rm -rf $CARGO_HOME/registry/index
270
263
271
264
# # Rust Tier 3 targets can't use Rustup
272
265
task :
@@ -275,8 +268,6 @@ task:
275
268
env :
276
269
BUILD : check
277
270
HOST : x86_64-unknown-linux-gnu
278
- PLUS :
279
- TOOLCHAIN :
280
271
ZFLAGS : -Zbuild-std
281
272
matrix :
282
273
- name : DragonFly BSD x86_64
0 commit comments