Skip to content

Commit 57eb29c

Browse files
committed
feat: 直接使用arm runner与llvm
1 parent 691c21f commit 57eb29c

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88

99
jobs:
1010
build-and-test:
11-
runs-on: ubuntu-latest
1211
strategy:
1312
fail-fast: false
1413
matrix:
@@ -22,13 +21,16 @@ jobs:
2221
- arch: x86_64
2322
neon: true
2423

24+
runs-on: ${{ matrix.arch == 'aarch64' && 'ubuntu-latest-arm64' || 'ubuntu-latest' }}
25+
2526
steps:
2627
- name: Checkout repository
2728
uses: actions/checkout@v4
2829

29-
- name: Set up QEMU
30-
if: matrix.arch == 'aarch64'
31-
uses: docker/setup-qemu-action@v3
30+
- name: Install Clang
31+
run: |
32+
sudo apt-get update
33+
sudo apt-get install -y clang
3234
3335
- name: Install Xmake
3436
uses: xmake-io/github-action-setup-xmake@v1
@@ -52,7 +54,7 @@ jobs:
5254
DEFINES=$(echo "$DEFINES" | sed 's/^ *//')
5355
5456
echo "Configuring with cxxflags: $DEFINES"
55-
xmake f --mode=${{ matrix.mode }} --arch=${{ matrix.arch }} --cxxflags="$DEFINES" -y
57+
xmake f --toolchain=llvm --mode=${{ matrix.mode }} --arch=${{ matrix.arch }} --cxxflags="$DEFINES" -y
5658
5759
- name: Build all targets
5860
run: xmake build -vD -y
@@ -61,4 +63,4 @@ jobs:
6163
run: xmake run tests -y
6264

6365
- name: Run benchmark
64-
run: xmake run benchmark -y
66+
run: xmake run benchmark -y

0 commit comments

Comments
 (0)