diff --git a/.github/ci_env.yml b/.github/ci_env.yml index 3cb913d..5de2b6f 100644 --- a/.github/ci_env.yml +++ b/.github/ci_env.yml @@ -3,4 +3,3 @@ channels: - conda-forge dependencies: - cookiecutter - diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a904dc5..9f6f576 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -85,6 +85,9 @@ jobs: - name: install mamba uses: mamba-org/setup-micromamba@v1 with: + init-shell: >- + powershell + cmd.exe environment-file: .github/ci_env.yml - name: micromamba shell hook @@ -104,13 +107,13 @@ jobs: micromamba activate xeus_cookiecutter_test_env - name: install cxx compiler - shell: cmd + shell: cmd /C CALL {0} run: | call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus_cookiecutter_test_env call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat install cxx-compiler -c conda-forge -y - name: cmake configure - shell: cmd + shell: cmd /C CALL {0} run: | call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus_cookiecutter_test_env cd xeus-mylang @@ -119,7 +122,7 @@ jobs: cmake .. -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DXEUS_BUILD_TESTS=ON -DDEPENDENCY_SEARCH_PREFIX="%CONDA_PREFIX%\Library" -DCMAKE_PREFIX_PATH="%CONDA_PREFIX%\Library" -DCMAKE_INSTALL_PREFIX="%CONDA_PREFIX%" - name: build - shell: cmd + shell: cmd /C CALL {0} run: | call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus_cookiecutter_test_env cd xeus-mylang/bld @@ -127,7 +130,7 @@ jobs: nmake install - name: test - shell: cmd + shell: cmd /C CALL {0} run: | call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xeus_cookiecutter_test_env cd xeus-mylang/test @@ -225,7 +228,7 @@ jobs: -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/custom_sysroot \ -Dnlohmann_json_DIR=$GITHUB_WORKSPACE/custom_sysroot/lib/cmake/nlohmann_json \ -Dxtl_DIR=$GITHUB_WORKSPACE/custom_sysroot/share/cmake/xtl \ - -Dxeus_DIR=$GITHUB_WORKSPACE/custom_sysroot/lib/cmake/xeus + -Dxeus_DIR=$GITHUB_WORKSPACE/custom_sysroot/lib/cmake/xeus emmake make -j2 emmake make -j2 install