Skip to content

Commit eba834d

Browse files
committed
ci: always install pinned xlings (cache may hold stale version)
1 parent 2f482b7 commit eba834d

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ jobs:
5858
XLINGS_NON_INTERACTIVE: '1'
5959
XLINGS_VERSION: '0.4.30'
6060
run: |
61-
if [ ! -x "$HOME/.xlings/subos/default/bin/xlings" ]; then
62-
tarball="xlings-${XLINGS_VERSION}-linux-x86_64.tar.gz"
63-
curl -fsSL -o "/tmp/${tarball}" \
64-
"https://github.com/d2learn/xlings/releases/download/v${XLINGS_VERSION}/${tarball}"
65-
tar -xzf "/tmp/${tarball}" -C /tmp
66-
"/tmp/xlings-${XLINGS_VERSION}-linux-x86_64/subos/default/bin/xlings" self install
67-
fi
61+
# Always install the pinned version — cache may hold an older
62+
# xlings whose sysroot/packages are incompatible.
63+
tarball="xlings-${XLINGS_VERSION}-linux-x86_64.tar.gz"
64+
curl -fsSL -o "/tmp/${tarball}" \
65+
"https://github.com/d2learn/xlings/releases/download/v${XLINGS_VERSION}/${tarball}"
66+
tar -xzf "/tmp/${tarball}" -C /tmp
67+
"/tmp/xlings-${XLINGS_VERSION}-linux-x86_64/subos/default/bin/xlings" self install
6868
export PATH="$HOME/.xlings/subos/default/bin:$PATH"
6969
xlings --version
7070
# xim:mcpp — `xlings install` is idempotent so cache hits skip

0 commit comments

Comments
 (0)