Skip to content

Commit 04b7b5c

Browse files
committed
update macos ci
1 parent 99d0016 commit 04b7b5c

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ concurrency:
1414
group: ci-${{ github.ref }}
1515
cancel-in-progress: true
1616

17+
env:
18+
XLINGS_VERSION: v0.4.2
19+
1720
jobs:
1821
build-linux:
1922
runs-on: ubuntu-latest
@@ -54,27 +57,33 @@ jobs:
5457

5558
build-macos:
5659
runs-on: macos-15
57-
timeout-minutes: 20
5860
steps:
59-
- name: Checkout
61+
- name: Checkout code
6062
uses: actions/checkout@v4
6163

6264
- name: Install Xlings
6365
env:
6466
XLINGS_NON_INTERACTIVE: 1
6567
run: |
66-
curl -fsSL https://raw.githubusercontent.com/d2learn/xlings/refs/heads/main/tools/other/quick_install.sh | bash
68+
VERSION_NUM="${XLINGS_VERSION#v}"
69+
TARBALL="xlings-${VERSION_NUM}-macosx-arm64.tar.gz"
70+
curl -fSL -o "$RUNNER_TEMP/$TARBALL" "https://github.com/d2learn/xlings/releases/download/${XLINGS_VERSION}/${TARBALL}"
71+
tar -xzf "$RUNNER_TEMP/$TARBALL" -C "$RUNNER_TEMP"
72+
EXTRACT_DIR=$(find "$RUNNER_TEMP" -maxdepth 1 -type d -name "xlings-*" | head -1)
73+
xattr -dr com.apple.quarantine "$EXTRACT_DIR" 2>/dev/null || true
74+
chmod +x "$EXTRACT_DIR/bin/xlings"
75+
"$EXTRACT_DIR/bin/xlings" self install
6776
echo "PATH=$HOME/.xlings/subos/current/bin:$PATH" >> "$GITHUB_ENV"
6877
69-
- name: Install LLVM 20 with Xlings
78+
- name: Install Project Dependencies via Xlings
7079
run: |
71-
xlings install --verbose
72-
xmake --version
80+
xlings install
7381
clang --version
7482
75-
- name: Build
83+
- name: Build with xmake
7684
run: |
77-
xmake f -m release --toolchain=llvm -y -vv
85+
xmake f -m release --toolchain=llvm -vv -y
86+
xmake -j$(nproc)
7887
7988
build-windows:
8089
runs-on: windows-latest

0 commit comments

Comments
 (0)