Skip to content

Commit e9be5d6

Browse files
committed
Fix Windows runner issues
- Use cmd shell instead of pwsh (not available) - Remove Linux CUDA container tests on Windows - Add simple Windows-native GPU/CPU tests - Fix Windows batch syntax Signed-off-by: cdunning <cdunning@nvidia.com>
1 parent 652a4ba commit e9be5d6

1 file changed

Lines changed: 18 additions & 26 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,16 @@ jobs:
7171
- name: Check Hardware (Windows)
7272
if: matrix.os == 'windows'
7373
timeout-minutes: 5
74-
shell: pwsh
74+
shell: cmd
7575
run: |
76-
Write-Host "=== Host Hardware Information ==="
77-
Write-Host "Runner: ${{ matrix.runner }}"
78-
if ("${{ matrix.gpu }}" -eq "true") {
76+
echo === Host Hardware Information ===
77+
echo Runner: ${{ matrix.runner }}
78+
if "${{ matrix.gpu }}"=="true" (
7979
nvidia-smi
80-
} else {
81-
Write-Host "CPU-only runner (no GPU access)"
82-
Get-ComputerInfo | Select-Object CsProcessors, TotalPhysicalMemory
83-
}
80+
) else (
81+
echo CPU-only runner (no GPU access)
82+
systeminfo | findstr /C:"Processor"
83+
)
8484
8585
8686
- name: Test CUDA Image with GPU (Linux)
@@ -110,29 +110,21 @@ jobs:
110110
nvidia-smi 2>/dev/null || echo 'nvidia-smi not available without --gpus flag (expected)'
111111
"
112112
113-
- name: Test CUDA Image with GPU (Windows)
113+
- name: Test Windows Container with GPU
114114
if: matrix.gpu == true && matrix.os == 'windows'
115115
timeout-minutes: 10
116-
shell: pwsh
116+
shell: cmd
117117
run: |
118-
docker pull nvidia/cuda:13.0.2-base-ubuntu24.04
119-
Write-Host "=== Testing with GPU access ==="
120-
docker run --rm --gpus all nvidia/cuda:13.0.2-base-ubuntu24.04 bash -c "
121-
echo 'Container with GPU access:'
122-
nvidia-smi || echo 'nvidia-smi not available in container'
123-
cat /etc/os-release
124-
"
118+
echo === Testing with GPU access ===
119+
nvidia-smi
120+
echo Windows GPU runner test successful
125121
126-
- name: Test CUDA Image CPU Only (Windows)
122+
- name: Test Windows Container CPU Only
127123
if: matrix.gpu == false && matrix.os == 'windows'
128124
timeout-minutes: 10
129-
shell: pwsh
125+
shell: cmd
130126
run: |
131-
docker pull nvidia/cuda:13.0.2-base-ubuntu24.04
132-
Write-Host "=== Testing without GPU access (CPU only) ==="
133-
docker run --rm nvidia/cuda:13.0.2-base-ubuntu24.04 bash -c "
134-
echo 'CUDA container test successful (CPU only - no GPU access)'
135-
cat /etc/os-release
136-
nvidia-smi 2>/dev/null || echo 'nvidia-smi not available without --gpus flag (expected)'
137-
"
127+
echo === Testing without GPU access (CPU only) ===
128+
echo Windows CPU-only runner test successful
129+
docker --version
138130

0 commit comments

Comments
 (0)