Skip to content

Commit 10c2d9d

Browse files
committed
ci: add build.yml
1 parent fec80f9 commit 10c2d9d

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- ".github/workflows/build.yml"
8+
- "include/**"
9+
- "src/**"
10+
- "xmake.lua"
11+
pull_request:
12+
branches: [ main ]
13+
workflow_dispatch:
14+
15+
jobs:
16+
xmake:
17+
runs-on: windows-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
mode:
22+
- debug
23+
- release
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
with:
28+
submodules: recursive
29+
30+
- name: Setup XMake
31+
uses: xmake-io/github-action-setup-xmake@v1
32+
with:
33+
xmake-version: "latest"
34+
35+
- name: Configure
36+
run: xmake config -y --mode=${{ matrix.mode }}
37+
38+
- name: Build
39+
run: xmake build -y -vD

0 commit comments

Comments
 (0)