Skip to content

Commit

Permalink
use different shell style
Browse files Browse the repository at this point in the history
  • Loading branch information
DerThorsten committed Jun 4, 2024
1 parent 4626674 commit 4dfec8e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ jobs:
with:
init-shell: >-
cmd.exe
powershell
environment-file: .github/ci_env.yml

- name: Create project with cookiecutter
Expand All @@ -89,31 +90,31 @@ jobs:
cookiecutter . --no-input -f

- name: Create and activate env
shell: cmd /C CALL {0}
shell: micromamba-shell {0}
run: |
micromamba create -f xeus-mylang\environment-dev.yml -y --name xeus_cookiecutter_test_env
micrommamba create -f xeus-mylang\environment-dev.yml -y --name xeus_cookiecutter_test_env
- name: Configure cmake
shell: cmd /C CALL {0}
shell: micromamba-shell {0}
run: |
micromamba activate xeus_cookiecutter_test_env
micrommamba activate xeus_cookiecutter_test_env
cd xeus-mylang
mkdir -p bld
cd bld
cmake .. -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 and install
shell: cmd /C CALL {0}
shell: micromamba-shell {0}
run: |
micromamba activate xeus_cookiecutter_test_env
micrommamba activate xeus_cookiecutter_test_env
cd xeus-mylang/bld
set CL=/MP
nmake install
- name: Test
shell: cmd /C CALL {0}
shell: micromamba-shell {0}
run: |
micromamba activate xeus_cookiecutter_test_env
micrommamba activate xeus_cookiecutter_test_env
cd xeus-mylang/test
pytest . --reruns 5
Expand Down

0 comments on commit 4dfec8e

Please sign in to comment.