Skip to content

Commit 9559bca

Browse files
committed
run windows in CI as well
1 parent 15a6088 commit 9559bca

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

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: 22 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,24 @@ 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+
run: |
43+
mkdir build
44+
cd build
45+
cmake -GNinja ..
46+
ninja
47+
48+
- name: Test
49+
run: |
50+
cd build
51+
ninja test

0 commit comments

Comments
 (0)