Skip to content

Commit 002af19

Browse files
committed
fix: install xmake via xlings on Windows (psget.text unreliable)
1 parent 2e0e8da commit 002af19

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci-windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@ jobs:
184184
echo "Has clang-cl: $([ -f "$LLVM_ROOT/bin/clang-cl.exe" ] && echo YES || echo NO)"
185185
echo "Has lld-link: $([ -f "$LLVM_ROOT/bin/lld-link.exe" ] && echo YES || echo NO)"
186186
187-
- name: Install xmake
188-
shell: pwsh
187+
- name: Install xmake via xlings
188+
shell: bash
189189
run: |
190-
Invoke-Expression (Invoke-WebRequest 'https://xmake.io/psget.text' -UseBasicParsing).Content
191-
xmake --version
190+
xlings.exe install xmake -y || xlings install xmake -y
191+
xmake.exe --version || xmake --version
192192
193193
- name: Build mcpp with xmake (MSVC)
194194
shell: pwsh

0 commit comments

Comments
 (0)