Skip to content

Commit 9e4ad29

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, 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 9e4ad29

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci_linux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,21 +85,21 @@ 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:
101101
RUSTDOCFLAGS: -Dwarnings
102-
run: cargo doc --workspace --all-features --document-private-items --no-deps --exclude "cust_raw"
102+
run: cargo doc --all-features --document-private-items --no-deps --exclude "cust_raw"
103103

104104
- name: Prepare artifact details
105105
id: artifact_details

.github/workflows/ci_windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,21 +89,21 @@ jobs:
8989
run: cargo build --all-features -p cust_raw
9090

9191
- name: Build workspace
92-
run: cargo build --workspace --exclude "cudnn*" --exclude "gemm*" --exclude "sha2*" --exclude "vecadd*"
92+
run: cargo build --exclude "cudnn*" --exclude "gemm*" --exclude "sha2*" --exclude "vecadd*"
9393

9494
- name: Clippy
9595
env:
9696
RUSTFLAGS: -Dwarnings
97-
run: cargo clippy --workspace --exclude "cudnn*" --exclude "gemm*" --exclude "sha2*" --exclude "vecadd*"
97+
run: cargo clippy --exclude "cudnn*" --exclude "gemm*" --exclude "sha2*" --exclude "vecadd*"
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:
105105
RUSTDOCFLAGS: -Dwarnings
106-
run: cargo doc --workspace --all-features --document-private-items --no-deps --exclude "cudnn*" --exclude "cust_raw" --exclude "gemm*" --exclude "sha2*" --exclude "vecadd*"
106+
run: cargo doc --all-features --document-private-items --no-deps --exclude "cudnn*" --exclude "cust_raw" --exclude "gemm*" --exclude "sha2*" --exclude "vecadd*"
107107

108108
# Disabled due to dll issues, someone with Windows knowledge needed
109109
# - name: Compiletest

0 commit comments

Comments
 (0)