Add MSVC-based CI build

This commit is contained in:
Michael Hansen
2019-10-09 16:54:42 -07:00
parent 96b5dd1d02
commit c71d41efb6
4 changed files with 35 additions and 2 deletions

View File

@@ -6,9 +6,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build and Test
- name: Configure and Build
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j2
- name: Test
run: |
cd build
make check

23
.github/workflows/msvc-ci.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: MSVC-CI
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Configure and Build
run: |
mkdir build && cd build
cmake -G "Visual Studio 16 2019" -A Win32 ..
cmake --build . --config Debug
# This should probably be fixed to work from MSVC without needing to
# use a bash shell and the GNU userland tools... But for now, the
# GH Actions environment provides what we need.
- name: Test
run: |
cd build\Debug
bash.exe ..\..\tests\all_tests.sh
env:
PYTHON_EXE: python.exe