From 8e2381c3afe79e50d245fbe8ef5bad8e7e401eb2 Mon Sep 17 00:00:00 2001 From: selimnairb Date: Fri, 17 Nov 2023 11:22:01 -0500 Subject: [PATCH] CI: First attempt at GH action workflow for Windows: set CC and CXX; activate conda env for each run step --- .github/workflows/testwindows.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/testwindows.yml b/.github/workflows/testwindows.yml index 8f2dba51d7..90c6e36512 100644 --- a/.github/workflows/testwindows.yml +++ b/.github/workflows/testwindows.yml @@ -58,13 +58,13 @@ 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 + set PATH=C:\Miniconda;C:\Miniconda\Library\bin;C:\Miniconda\Scripts;%PATH% conda activate test-environment cmake -Bbuild -S. -GNinja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} + -DCMAKE_C_COMPILER=cl.exe + -DCMAKE_CXX_COMPILER=cl.exe -DCMAKE_INSTALL_PREFIX=C:\Miniconda\envs\test-environment\Library -DHDF5_ROOT=C:\Miniconda\envs\test-environment\Library -DBAG_BUILD_TESTS:BOOL=ON