Skip to content

Commit cf3ad9c

Browse files
committed
fix: ci-fresh-install Windows — use pwsh for native path handling
Git Bash on Windows mangles GITHUB_PATH entries. Switch to pwsh which handles Windows paths natively.
1 parent 65ce469 commit cf3ad9c

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/ci-fresh-install.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,20 @@ jobs:
6666
timeout-minutes: 30
6767
steps:
6868
- name: Install xlings
69-
shell: bash
69+
shell: pwsh
7070
run: |
71-
curl -fsSL https://github.com/d2learn/xlings/releases/download/v0.4.30/xlings-0.4.30-windows-x86_64.zip -o /tmp/xlings.zip
72-
mkdir -p /tmp/xlings-extract
73-
unzip -o /tmp/xlings.zip -d /tmp/xlings-extract
74-
/tmp/xlings-extract/xlings-0.4.30-windows-x86_64/subos/default/bin/xlings.exe self install
75-
echo "$USERPROFILE/.xlings/subos/default/bin" >> "$GITHUB_PATH"
71+
Invoke-WebRequest -Uri "https://github.com/d2learn/xlings/releases/download/v0.4.30/xlings-0.4.30-windows-x86_64.zip" -OutFile "$env:TEMP\xlings.zip"
72+
Expand-Archive -Path "$env:TEMP\xlings.zip" -DestinationPath "$env:TEMP\xlings-extract" -Force
73+
& "$env:TEMP\xlings-extract\xlings-0.4.30-windows-x86_64\subos\default\bin\xlings.exe" self install
74+
"$env:USERPROFILE\.xlings\subos\default\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
7675
7776
- name: Install mcpp
78-
shell: bash
77+
shell: pwsh
7978
run: xlings install mcpp -y
8079

8180
- name: "mcpp new hello → mcpp run"
82-
shell: bash
81+
shell: pwsh
8382
run: |
8483
mcpp new hello
85-
cd hello
84+
Set-Location hello
8685
mcpp run

0 commit comments

Comments
 (0)