Add MSVC-based CI build
This commit is contained in:
5
.github/workflows/linux-ci.yml
vendored
5
.github/workflows/linux-ci.yml
vendored
@@ -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
23
.github/workflows/msvc-ci.yml
vendored
Normal 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
|
Reference in New Issue
Block a user