88env :
99 XLINGS_VERSION : 0.4.51
1010 MCPP_VERSION : 0.0.52
11+ XLINGS_NON_INTERACTIVE : ' 1'
1112
1213jobs :
1314 build-linux-mcpp :
1819
1920 - name : Install xlings
2021 run : |
21- tarball="xlings-${XLINGS_VERSION}-linux-x86_64.tar.gz"
22- curl -fsSL --retry 10 --retry-all-errors --retry-delay 10 --connect-timeout 30 -o "/tmp/${tarball}" \
23- "https://github.com/d2learn/xlings/releases/download/v${XLINGS_VERSION}/${tarball}"
24- tar -xzf "/tmp/${tarball}" -C /tmp
25- "/tmp/xlings-${XLINGS_VERSION}-linux-x86_64/subos/default/bin/xlings" self install
22+ curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s "v${XLINGS_VERSION}"
2623 echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
2724
2825 - name : Refresh package index
5855 - uses : actions/checkout@v4
5956
6057 - name : Install xlings
61- env :
62- XLINGS_NON_INTERACTIVE : 1
6358 run : |
64- TARBALL="xlings-${XLINGS_VERSION}-macosx-arm64.tar.gz"
65- curl -fSL --retry 10 --retry-all-errors --retry-delay 10 --connect-timeout 30 -o "$RUNNER_TEMP/$TARBALL" "https://github.com/d2learn/xlings/releases/download/v${XLINGS_VERSION}/${TARBALL}"
66- tar -xzf "$RUNNER_TEMP/$TARBALL" -C "$RUNNER_TEMP"
67- EXTRACT_DIR=$(find "$RUNNER_TEMP" -maxdepth 1 -type d -name "xlings-*" | head -1)
68- xattr -dr com.apple.quarantine "$EXTRACT_DIR" 2>/dev/null || true
69- chmod +x "$EXTRACT_DIR/bin/xlings"
70- "$EXTRACT_DIR/bin/xlings" self install
59+ curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s "v${XLINGS_VERSION}"
7160 echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
7261
7362 - name : Refresh package index
@@ -89,26 +78,19 @@ jobs:
8978 build-windows :
9079 name : build (windows x86_64, mcpp)
9180 runs-on : windows-latest
92- defaults :
93- run :
94- shell : bash
95- env :
96- XLINGS_NON_INTERACTIVE : 1
9781 steps :
9882 - uses : actions/checkout@v4
9983
100- # Everything in one bash step so the in-process PATH is used directly
101- # (avoids cross-step PATH translation issues for the msys/Windows mix).
102- - name : Install xlings and build with mcpp
84+ - name : Install xlings
85+ shell : pwsh
86+ run : |
87+ irm https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.ps1 | iex
88+ "$env:USERPROFILE\.xlings\subos\current\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
89+
90+ - name : Build with mcpp
91+ shell : bash
10392 run : |
10493 set -e
105- ZIP="xlings-${XLINGS_VERSION}-windows-x86_64.zip"
106- curl -fSL --retry 10 --retry-all-errors --retry-delay 10 --connect-timeout 30 -o "$RUNNER_TEMP/$ZIP" "https://github.com/d2learn/xlings/releases/download/v${XLINGS_VERSION}/${ZIP}"
107- unzip -q "$RUNNER_TEMP/$ZIP" -d "$RUNNER_TEMP/xl"
108- XL=$(find "$RUNNER_TEMP/xl" -name 'xlings.exe' | head -1)
109- echo "xlings: $XL"
110- "$XL" self install
111- export PATH="$HOME/.xlings/subos/current/bin:$PATH"
11294 xlings update
11395 xlings install -y
11496 mcpp build
@@ -128,11 +110,7 @@ jobs:
128110
129111 - name : Install xlings
130112 run : |
131- tarball="xlings-${XLINGS_VERSION}-linux-x86_64.tar.gz"
132- curl -fsSL --retry 10 --retry-all-errors --retry-delay 10 --connect-timeout 30 -o "/tmp/${tarball}" \
133- "https://github.com/d2learn/xlings/releases/download/v${XLINGS_VERSION}/${tarball}"
134- tar -xzf "/tmp/${tarball}" -C /tmp
135- "/tmp/xlings-${XLINGS_VERSION}-linux-x86_64/subos/default/bin/xlings" self install
113+ curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash -s "v${XLINGS_VERSION}"
136114 echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
137115
138116 - name : Refresh package index
0 commit comments