Skip to content

Commit

Permalink
run windows in CI as well
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv committed Apr 14, 2022
1 parent 15a6088 commit 8690aac
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/micromamba_ci_environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: ci_environment
channels:
- conda-forge
dependencies:
- c-compiler
- ninja
- cmake
- zlib
37 changes: 36 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- master

jobs:
build:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -28,3 +28,38 @@ jobs:
run: |
cd build
make test
build_win:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install environment from environment.yml
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: .github/micromamba_ci_environment.yml

- name: Build
shell: cmd /C CALL {0}
run: |
call micromamba activate ci_environment
mkdir build
cd build
cmake -GNinja .. ^
-D CMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
-D ENABLE_CONDA=ON ^
-D MULTI_SEMANTICS=ON ^
-D WITHOUT_COOKIEOPEN=ON
ninja
ninja install
- name: Test
shell: cmd /C call {0}
run: |
call micromamba activate ci_environment
set CTEST_OUTPUT_ON_FAILURE=1
cd build
ninja test

0 comments on commit 8690aac

Please # to comment.