Skip to content

Commit 15596c0

Browse files
authored
CI on Windows
1 parent 4c83c50 commit 15596c0

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/ci-windows.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build on Windows
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
windowsbuild:
12+
runs-on: windows-2019
13+
steps:
14+
- uses: xmake-io/github-action-setup-xmake@v1
15+
with:
16+
xmake-version: v2.8.5
17+
- uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 1
20+
- name: config
21+
run: xmake config --yes -vD
22+
- name: build
23+
run: xmake build --yes -vD s7
24+
- name: test
25+
run: xmake run --yes -vD plus.scm
26+

xmake.lua

+7
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,11 @@ target("plus.scm") do
3131
os.exec(cmd)
3232
end)
3333
end
34+
if is_plat("windows") then
35+
on_run(function (target)
36+
cmd = "$(buildir)/$(plat)/$(arch)/$(mode)/s7.exe " .. "tests/plus.scm"
37+
print("> " .. cmd)
38+
os.exec(cmd)
39+
end)
40+
end
3441
end

0 commit comments

Comments
 (0)