Skip to content

Commit 99d0016

Browse files
committed
use xlings to auto-config project
1 parent 67c2705 commit 99d0016

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,28 @@ jobs:
5353
run: xmake run basic
5454

5555
build-macos:
56-
runs-on: macos-14
56+
runs-on: macos-15
5757
timeout-minutes: 20
5858
steps:
5959
- name: Checkout
6060
uses: actions/checkout@v4
6161

62-
- name: Install dependencies
63-
run: brew install xmake llvm@20
62+
- name: Install Xlings
63+
env:
64+
XLINGS_NON_INTERACTIVE: 1
65+
run: |
66+
curl -fsSL https://raw.githubusercontent.com/d2learn/xlings/refs/heads/main/tools/other/quick_install.sh | bash
67+
echo "PATH=$HOME/.xlings/subos/current/bin:$PATH" >> "$GITHUB_ENV"
68+
69+
- name: Install LLVM 20 with Xlings
70+
run: |
71+
xlings install --verbose
72+
xmake --version
73+
clang --version
6474
6575
- name: Build
6676
run: |
67-
export PATH=/opt/homebrew/opt/llvm@20/bin:$PATH
68-
xmake f --toolchain=llvm --sdk=/opt/homebrew/opt/llvm@20 -m release -y -vv
69-
xmake -y -vv -j$(sysctl -n hw.ncpu)
77+
xmake f -m release --toolchain=llvm -y -vv
7078
7179
build-windows:
7280
runs-on: windows-latest

0 commit comments

Comments
 (0)