Skip to content

Commit

Permalink
CI: First attempt at GH action workflow for Windows: set CC and CXX; …
Browse files Browse the repository at this point in the history
…activate conda env for each run step
  • Loading branch information
selimnairb committed Nov 17, 2023
1 parent 65594e7 commit 34c740d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/testwindows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test Matrix
name: Test Matrix - Windows

on:
push:
Expand Down Expand Up @@ -58,6 +58,12 @@ jobs:
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
shell: cmd
run: >
set CC=cl.exe
set CXX=cl.exe
conda activate test-environment
cmake -Bbuild -S. -GNinja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-DCMAKE_INSTALL_PREFIX=C:\Miniconda\envs\test-environment\Library
-DHDF5_ROOT=C:\Miniconda\envs\test-environment\Library
Expand All @@ -76,13 +82,15 @@ jobs:
- name: Install
shell: cmd
run: |
conda activate test-environment
cmake --install build
python -m pip install .\wheel\bagPy-*.whl
- name: Tests
shell: cmd
# Execute C++ and Python tests
run: |
conda activate test-environment
set BAG_SAMPLES_PATH=%github.workspace%\examples\sample-data
.\build\tests\bag_tests
conda activate test-environment
Expand Down

0 comments on commit 34c740d

Please sign in to comment.