Skip to content

Commit 0706c17

Browse files
committed
PowerShell CI tweaks.
- `pwsh` is the default shell on Windows, no need to specify it. - Putting a backtick at the end of a line lets you continue it on the next, like a backslash in Unix shells.
1 parent 48ecf18 commit 0706c17

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/ci_windows.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ jobs:
5757
log-file-suffix: "${{matrix.os}}-${{matrix.cuda}}"
5858

5959
- name: List CUDA_PATH files
60-
shell: pwsh
6160
run: Get-ChildItem -Path $env:CUDA_PATH -Recurse | ForEach-Object { $_.FullName }
6261

6362
# random command that forces rustup to install stuff in rust-toolchain
@@ -68,7 +67,6 @@ jobs:
6867
run: rustup component add rustfmt clippy
6968

7069
- name: Update PATH to expose CUDA codegen backend
71-
shell: pwsh
7270
run: |
7371
echo "$env:CUDA_PATH\nvvm\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
7472
@@ -103,14 +101,20 @@ jobs:
103101
# Exclude crates with tests that require an NVIDIA GPU: blastoff, cudnn, cust.
104102
# Exclude crates that require cuDNN, not available on Windows CI: cudnn, cudnn-sys.
105103
- name: Test
106-
run: cargo test --workspace --exclude blastoff --exclude cudnn --exclude cudnn-sys --exclude cust
104+
run: |
105+
cargo test --workspace `
106+
--exclude blastoff --exclude cudnn --exclude cudnn-sys --exclude cust
107107
108108
# Exclude crates that require cuDNN, not available on Windows CI: cudnn, cudnn-sys.
109109
- name: Check documentation
110110
env:
111111
RUSTDOCFLAGS: -Dwarnings
112-
run: cargo doc --workspace --all-features --document-private-items --no-deps --exclude cudnn --exclude cudnn-sys
112+
run: |
113+
cargo doc --workspace --all-features --document-private-items --no-deps `
114+
--exclude cudnn --exclude cudnn-sys
113115
114116
# Disabled due to dll issues, someone with Windows knowledge needed
115117
# - name: Compiletest
116-
# run: cargo run -p compiletests --release --no-default-features -- --target-arch compute_61,compute_75,compute_90
118+
# run: |
119+
# cargo run -p compiletests --release --no-default-features `
120+
# -- --target-arch compute_61,compute_75,compute_90

0 commit comments

Comments
 (0)