Skip to content

Commit

Permalink
set up Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
digama0 committed Feb 9, 2022
1 parent acc9b04 commit 5f9f67d
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: ci

jobs:
build:
name: Build
name: Build Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -17,3 +17,42 @@ jobs:
- name: test
working-directory: tests
run: env METAMATH=../metamath ./run_test.sh *.in

build-win-msvc:
name: Build Windows (MSVC)
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1

- name: build
working-directory: src
run: cl.exe *.c

- name: run
working-directory: src
run: ./metamath.exe

- name: test
working-directory: tests
shell: bash
run: env METAMATH=../src/metamath.exe ./run_test.sh *.in

build-win-gcc:
name: Build Windows (GCC)
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- name: build
working-directory: src
run: gcc *.c -o metamath.exe

- name: run
working-directory: src
run: ./metamath.exe

- name: test
working-directory: tests
shell: bash
run: env METAMATH=../src/metamath.exe ./run_test.sh *.in

0 comments on commit 5f9f67d

Please sign in to comment.