@@ -29,44 +29,19 @@ jobs:
29
29
steps :
30
30
- uses : actions/checkout@master
31
31
- name : Install Rust
32
- run : rustup update nightly && rustup default nightly
32
+ run : rustup update nightly --no-self-update && rustup default nightly
33
33
- run : rustup target add ${{ matrix.target }}
34
34
- run : rustup target add x86_64-unknown-linux-musl
35
35
- run : cargo generate-lockfile
36
36
- run : ./ci/run-docker.sh ${{ matrix.target }}
37
37
38
- msrv :
39
- name : Check MSRV
40
- runs-on : ubuntu-latest
41
- env :
42
- RUSTFLAGS : # No need to check warnings on old MSRV, unset `-Dwarnings`
43
- steps :
44
- - uses : actions/checkout@master
45
- - run : |
46
- msrv="$(perl -ne 'print if s/rust-version\s*=\s*"(.*)"/\1/g' Cargo.toml)"
47
- echo "MSRV: $msrv"
48
- echo "MSRV=$msrv" >> "$GITHUB_ENV"
49
- - name : Install Rust
50
- run : rustup update "$MSRV" && rustup default "$MSRV"
51
- - run : cargo build -p libm
52
-
53
-
54
- rustfmt :
55
- name : Rustfmt
56
- runs-on : ubuntu-latest
57
- steps :
58
- - uses : actions/checkout@master
59
- - name : Install Rust
60
- run : rustup update nightly && rustup default nightly && rustup component add rustfmt
61
- - run : cargo fmt -- --check
62
-
63
38
wasm :
64
39
name : WebAssembly
65
40
runs-on : ubuntu-latest
66
41
steps :
67
42
- uses : actions/checkout@master
68
43
- name : Install Rust
69
- run : rustup update nightly && rustup default nightly
44
+ run : rustup update nightly --no-self-update && rustup default nightly
70
45
- run : rustup target add wasm32-unknown-unknown
71
46
- run : cargo build --target wasm32-unknown-unknown
72
47
76
51
steps :
77
52
- uses : actions/checkout@master
78
53
- name : Install Rust
79
- run : rustup update nightly && rustup default nightly
54
+ run : rustup update nightly --no-self-update && rustup default nightly
80
55
- run : cargo build -p cb
81
56
82
57
benchmarks :
@@ -85,16 +60,44 @@ jobs:
85
60
steps :
86
61
- uses : actions/checkout@master
87
62
- name : Install Rust
88
- run : rustup update nightly && rustup default nightly
63
+ run : rustup update nightly --no-self-update && rustup default nightly
89
64
- run : cargo bench --all
90
65
66
+ msrv :
67
+ name : Check MSRV
68
+ runs-on : ubuntu-latest
69
+ env :
70
+ RUSTFLAGS : # No need to check warnings on old MSRV, unset `-Dwarnings`
71
+ steps :
72
+ - uses : actions/checkout@master
73
+ - run : |
74
+ msrv="$(perl -ne 'print if s/rust-version\s*=\s*"(.*)"/\1/g' Cargo.toml)"
75
+ echo "MSRV: $msrv"
76
+ echo "MSRV=$msrv" >> "$GITHUB_ENV"
77
+ - name : Install Rust
78
+ run : rustup update "$MSRV" --no-self-update && rustup default "$MSRV"
79
+ - run : cargo build -p libm
80
+
81
+ rustfmt :
82
+ name : Rustfmt
83
+ runs-on : ubuntu-latest
84
+ steps :
85
+ - uses : actions/checkout@master
86
+ - name : Install Rust
87
+ run : |
88
+ rustup update nightly --no-self-update
89
+ rustup default nightly
90
+ rustup component add rustfmt
91
+ - run : cargo fmt -- --check
92
+
91
93
success :
92
94
needs :
93
95
- docker
94
- - rustfmt
95
96
- wasm
96
97
- cb
97
98
- benchmarks
99
+ - msrv
100
+ - rustfmt
98
101
runs-on : ubuntu-latest
99
102
# GitHub branch protection is exceedingly silly and treats "jobs skipped because a dependency
100
103
# failed" as success. So we have to do some contortions to ensure the job fails if any of its
0 commit comments