Skip to content

Commit 8402f06

Browse files
committed
Remove unnecessary --workspace flags in CI commands.
The top-level `Cargo.toml` specifies a virtual workspace (one without a `[package]` section). This means the `--workspace` flag is unnecessary (unless `--exclude` is specified), because Cargo commands will process all crates by default. See https://doc.rust-lang.org/cargo/reference/workspaces.html#virtual-workspace.
1 parent 8c31646 commit 8402f06

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci_linux.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,16 @@ jobs:
8585
run: cargo build --all-features -p cust_raw
8686

8787
- name: Build workspace
88-
run: cargo build --workspace
88+
run: cargo build
8989

9090
- name: Clippy
9191
env:
9292
RUSTFLAGS: -Dwarnings
93-
run: cargo clippy --workspace
93+
run: cargo clippy
9494

9595
# Don't currently test because many tests rely on the system having a CUDA GPU
9696
# - name: Test
97-
# run: cargo test --workspace
97+
# run: cargo test
9898

9999
- name: Check documentation
100100
env:

.github/workflows/ci_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898

9999
# Don't currently test because many tests rely on the system having a CUDA GPU
100100
# - name: Test
101-
# run: cargo test --workspace
101+
# run: cargo test
102102

103103
- name: Check documentation
104104
env:

0 commit comments

Comments
 (0)