windows #177
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: windows | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
schedule: | |
- cron: "0 5 * * 1" # runs at 05:00 UTC on Mondays | |
jobs: | |
build: | |
runs-on: windows-latest | |
env: | |
configuration: Release | |
strategy: | |
fail-fast: true | |
max-parallel: 4 | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
auto-activate-base: true | |
activate-environment: '' | |
- name: Configure | |
shell: powershell | |
run: | | |
conda config --set always_yes yes --set changeps1 no | |
conda config --add channels conda-forge | |
conda install conda-devenv | |
conda devenv | |
conda activate optima | |
cmake -S . -B .build | |
- name: Build | |
shell: powershell | |
run: | | |
conda activate optima | |
clcache -s | |
clcache -z | |
cmake --build .build --config ${{ env.configuration }} | |
clcache -s | |
- name: Install | |
shell: powershell | |
run: | | |
conda activate optima | |
cmake --build .build --config ${{ env.configuration }} --target install | |
- name: Tests | |
shell: powershell | |
run: | | |
conda activate optima | |
cmake --build .build --config ${{ env.configuration }} --target tests |