Skip to content

Commit 061ba2a

Browse files
committed
Fix just installation on Windows CI
Use winget instead of direct download to avoid URL redirect issues on GitHub Actions Windows runners. Signed-off-by: Drew Cain <groksrc@gmail.com>
1 parent ef37193 commit 061ba2a

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,9 @@ jobs:
4444
- name: Install just (Windows)
4545
if: runner.os == 'Windows'
4646
run: |
47-
# Download and install just for Windows
48-
$url = "https://github.com/casey/just/releases/latest/download/just-x86_64-pc-windows-msvc.zip"
49-
Invoke-WebRequest -Uri $url -OutFile just.zip
50-
Expand-Archive just.zip -DestinationPath .
51-
Move-Item just.exe C:\Windows\System32\
52-
shell: powershell
47+
# Install just using winget (Windows Package Manager)
48+
winget install --id Casey.Just --exact --silent
49+
shell: pwsh
5350

5451
- name: Create virtual env
5552
run: |

0 commit comments

Comments
 (0)