Skip to content

Commit c1ddc9c

Browse files
committed
add/fix: ci fresh install
1 parent 74fc358 commit c1ddc9c

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

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

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@ jobs:
3838
env:
3939
XLINGS_NON_INTERACTIVE: '1'
4040
run: |
41-
curl -fsSL https://github.com/d2learn/xlings/releases/download/v0.4.30/xlings-0.4.30-linux-x86_64.tar.gz | tar -xzf - -C /tmp
42-
/tmp/xlings-0.4.30-linux-x86_64/subos/default/bin/xlings self install
43-
export PATH="$HOME/.xlings/subos/default/bin:$PATH"
41+
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash
42+
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
4443
xlings install mcpp -y
45-
echo "$HOME/.xlings/subos/default/bin" >> "$GITHUB_PATH"
4644
mcpp --version
45+
mcpp self config --mirror GLOBAL
4746
4847
- name: "GCC: mcpp new → run"
4948
run: |
@@ -74,7 +73,6 @@ jobs:
7473
7574
- name: "LLVM: mcpp new → run"
7675
run: |
77-
mcpp self config --mirror GLOBAL
7876
mcpp toolchain install llvm 20.1.7
7977
mcpp toolchain default llvm@20.1.7
8078
cd "$(mktemp -d)"
@@ -102,12 +100,11 @@ jobs:
102100
env:
103101
XLINGS_NON_INTERACTIVE: '1'
104102
run: |
105-
curl -fsSL https://github.com/d2learn/xlings/releases/download/v0.4.30/xlings-0.4.30-macosx-arm64.tar.gz | tar -xzf - -C /tmp
106-
/tmp/xlings-0.4.30-macosx-arm64/subos/default/bin/xlings self install
107-
export PATH="$HOME/.xlings/subos/default/bin:$PATH"
103+
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash
104+
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
108105
xlings install mcpp -y
109-
echo "$HOME/.xlings/subos/default/bin" >> "$GITHUB_PATH"
110106
mcpp --version
107+
mcpp self config --mirror GLOBAL
111108
112109
- name: "LLVM: mcpp new → run"
113110
run: |
@@ -136,14 +133,15 @@ jobs:
136133
env:
137134
XLINGS_NON_INTERACTIVE: '1'
138135
run: |
139-
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"
140-
Expand-Archive -Path "$env:TEMP\xlings.zip" -DestinationPath "$env:TEMP\xlings-extract" -Force
141-
& "$env:TEMP\xlings-extract\xlings-0.4.30-windows-x86_64\subos\default\bin\xlings.exe" self install
142-
$xlingsbin = "$env:USERPROFILE\.xlings\subos\default\bin"
136+
irm https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.ps1 | iex
137+
138+
$xlingsbin = "$env:USERPROFILE\.xlings\subos\current\bin"
143139
$env:PATH = "$xlingsbin;$env:PATH"
144-
xlings install mcpp -y
145140
$xlingsbin | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
141+
142+
xlings install mcpp -y
146143
mcpp --version
144+
mcpp self config --mirror GLOBAL
147145
148146
- name: "LLVM: mcpp new → run"
149147
shell: pwsh

0 commit comments

Comments
 (0)