86
86
sudo apt-get update
87
87
sudo apt-get install g++-multilib
88
88
if : matrix.build == 'linux32'
89
- - run : cargo test ${{ matrix.no_run }}
90
- - run : cargo test ${{ matrix.no_run }} --features parallel
91
- - run : cargo test ${{ matrix.no_run }} --manifest-path cc-test/Cargo.toml --target ${{ matrix.target }}
92
- - run : cargo test ${{ matrix.no_run }} --manifest-path cc-test/Cargo.toml --target ${{ matrix.target }} --features parallel
93
- - run : cargo test ${{ matrix.no_run }} --manifest-path cc-test/Cargo.toml --target ${{ matrix.target }} --release
89
+ - run : cargo test ${{ matrix.no_run }} --workspace --target ${{ matrix.target }}
90
+ - run : cargo test ${{ matrix.no_run }} --workspace --target ${{ matrix.target }} --release
91
+ - run : cargo test ${{ matrix.no_run }} --workspace --target ${{ matrix.target }} --features parallel
94
92
95
93
# This is separate from the matrix above because there is no prebuilt rust-std component for the target.
96
94
check-tvos :
@@ -105,11 +103,9 @@ jobs:
105
103
rustup component add rust-src --toolchain nightly
106
104
rustup default nightly
107
105
shell : bash
108
- - run : cargo test -Z build-std=std --no-run --target aarch64-apple-tvos
109
- - run : cargo test -Z build-std=std --no-run --features parallel --target aarch64-apple-tvos
110
- - run : cargo test -Z build-std=std --no-run --manifest-path cc-test/Cargo.toml --target aarch64-apple-tvos
111
- - run : cargo test -Z build-std=std --no-run --manifest-path cc-test/Cargo.toml --target aarch64-apple-tvos --features parallel
112
- - run : cargo test -Z build-std=std --no-run --manifest-path cc-test/Cargo.toml --target aarch64-apple-tvos --release
106
+ - run : cargo test -Z build-std=std --no-run --workspace --target aarch64-apple-tvos
107
+ - run : cargo test -Z build-std=std --no-run --workspace --target aarch64-apple-tvos --release
108
+ - run : cargo test -Z build-std=std --no-run --workspace --target aarch64-apple-tvos --features parallel
113
109
114
110
cuda :
115
111
name : Test CUDA support
@@ -127,7 +123,7 @@ jobs:
127
123
- name : Test 'cudart' feature
128
124
shell : bash
129
125
run : |
130
- PATH="/usr/local/cuda/bin:$PATH" cargo test --manifest-path cc-test/Cargo.toml --features test_cuda
126
+ PATH="/usr/local/cuda/bin:$PATH" cargo test --manifest-path dev-tools/ cc-test/Cargo.toml --features test_cuda
131
127
132
128
msrv :
133
129
name : MSRV
@@ -148,8 +144,8 @@ jobs:
148
144
run : cargo +nightly update -Zminimal-versions
149
145
- name : Cache downloaded crates since 1.53 is really slow in fetching
150
146
uses : Swatinem/rust-cache@v2
151
- - run : cargo check --lib
152
- - run : cargo check --lib --all-features
147
+ - run : cargo check --lib -p cc
148
+ - run : cargo check --lib -p cc - -all-features
153
149
154
150
clippy :
155
151
name : Clippy
0 commit comments