Skip to content

Commit f8e06ee

Browse files
committed
update ci
1 parent 4ef22f7 commit f8e06ee

File tree

1 file changed

+56
-2
lines changed

1 file changed

+56
-2
lines changed

.github/workflows/ci.yml

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [main, master]
88

99
jobs:
10-
build-and-test:
10+
build-linux:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
@@ -35,7 +35,7 @@ jobs:
3535
- name: Build
3636
run: |
3737
export PATH=/home/xlings/.xlings_data/bin:$PATH
38-
xmake -y
38+
xmake -y -vv
3939
4040
- name: Test
4141
run: |
@@ -47,3 +47,57 @@ jobs:
4747
export PATH=/home/xlings/.xlings_data/bin:$PATH
4848
xmake run with_dispatch -- add python 3.12
4949
xmake run with_dispatch -- remove foo
50+
51+
build-macos:
52+
runs-on: macos-latest
53+
steps:
54+
- name: Checkout
55+
uses: actions/checkout@v4
56+
57+
- name: Setup xmake
58+
uses: xmake-io/github-action-setup-xmake@v1
59+
with:
60+
xmake-version: latest
61+
package-cache: true
62+
63+
- name: Install LLVM 20
64+
run: brew install llvm@20
65+
66+
- name: Build
67+
run: |
68+
export PATH="$(brew --prefix llvm@20)/bin:$PATH"
69+
xmake -y -vv --toolchain=llvm
70+
71+
- name: Test
72+
run: |
73+
export PATH="$(brew --prefix llvm@20)/bin:$PATH"
74+
xmake run cmdline_test
75+
76+
- name: Run examples (smoke)
77+
run: |
78+
export PATH="$(brew --prefix llvm@20)/bin:$PATH"
79+
xmake run with_dispatch -- add python 3.12
80+
xmake run with_dispatch -- remove foo
81+
82+
build-windows:
83+
runs-on: windows-latest
84+
steps:
85+
- name: Checkout
86+
uses: actions/checkout@v4
87+
88+
- name: Setup xmake
89+
uses: xmake-io/github-action-setup-xmake@v1
90+
with:
91+
xmake-version: latest
92+
package-cache: true
93+
94+
- name: Build
95+
run: xmake -y -vv
96+
97+
- name: Test
98+
run: xmake run cmdline_test
99+
100+
- name: Run examples (smoke)
101+
run: |
102+
xmake run with_dispatch -- add python 3.12
103+
xmake run with_dispatch -- remove foo

0 commit comments

Comments
 (0)