Skip to content

Commit 8690aac

Browse files
committed
run windows in CI as well
1 parent 15a6088 commit 8690aac

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: ci_environment
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- c-compiler
6+
- ninja
7+
- cmake
8+
- zlib

.github/workflows/ci.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
- master
1212

1313
jobs:
14-
build:
14+
build_linux:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v2
@@ -28,3 +28,38 @@ jobs:
2828
run: |
2929
cd build
3030
make test
31+
32+
build_win:
33+
runs-on: windows-latest
34+
steps:
35+
- uses: actions/checkout@v2
36+
- name: Install environment from environment.yml
37+
uses: mamba-org/provision-with-micromamba@main
38+
with:
39+
environment-file: .github/micromamba_ci_environment.yml
40+
41+
- name: Build
42+
shell: cmd /C CALL {0}
43+
run: |
44+
call micromamba activate ci_environment
45+
46+
mkdir build
47+
cd build
48+
cmake -GNinja .. ^
49+
-D CMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
50+
-D ENABLE_CONDA=ON ^
51+
-D MULTI_SEMANTICS=ON ^
52+
-D WITHOUT_COOKIEOPEN=ON
53+
54+
ninja
55+
56+
ninja install
57+
58+
- name: Test
59+
shell: cmd /C call {0}
60+
run: |
61+
call micromamba activate ci_environment
62+
63+
set CTEST_OUTPUT_ON_FAILURE=1
64+
cd build
65+
ninja test

0 commit comments

Comments
 (0)