Skip to content

Commit ef5f043

Browse files
committed
set up Windows CI
1 parent acc9b04 commit ef5f043

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

.github/workflows/build.yml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: ci
66

77
jobs:
88
build:
9-
name: Build
9+
name: Build Linux
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
@@ -17,3 +17,42 @@ jobs:
1717
- name: test
1818
working-directory: tests
1919
run: env METAMATH=../metamath ./run_test.sh *.in
20+
21+
build-win:
22+
name: Build Windows (MSVC)
23+
runs-on: windows-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: ilammy/msvc-dev-cmd@v1
27+
28+
- name: build
29+
working-directory: src
30+
run: cl.exe *.c
31+
32+
- name: run
33+
working-directory: src
34+
run: ./metamath.exe
35+
36+
- name: test
37+
working-directory: tests
38+
shell: bash
39+
run: env METAMATH=../src/metamath.exe ./run_test.sh *.in
40+
41+
build-win:
42+
name: Build Windows (GCC)
43+
runs-on: windows-latest
44+
steps:
45+
- uses: actions/checkout@v2
46+
47+
- name: build
48+
working-directory: src
49+
run: gcc *.c -o metamath.exe
50+
51+
- name: run
52+
working-directory: src
53+
run: ./metamath.exe
54+
55+
- name: test
56+
working-directory: tests
57+
shell: bash
58+
run: env METAMATH=../src/metamath.exe ./run_test.sh *.in

0 commit comments

Comments
 (0)