Skip to content

Bump conda-incubator/setup-miniconda from 2 to 3 #23

Bump conda-incubator/setup-miniconda from 2 to 3

Bump conda-incubator/setup-miniconda from 2 to 3 #23

Workflow file for this run

name: CI windows
on:
push:
branches:
- main
pull_request:
jobs:
build-and-test:
name: ${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
toolchain:
- windows-msvc
configuration:
- Debug
include:
- toolchain: windows-msvc
os: windows-latest
compiler: msvc
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: true
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: true
activate-environment: ''
- name: Conda Environment
shell: powershell
run: |
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda install conda-devenv
conda devenv
- name: Cache
id: cache
uses: actions/cache@v2
with:
path: $HOME\clcache
key: ${{ runner.os }}-clcache
- name: Build SUNDIALS
shell: powershell
run: |
conda activate suneigen
scripts\buildSundials.ps1
- name: Configure (${{ matrix.configuration }})
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.configuration }}
- name: Build with ${{ matrix.compiler }}
run: cmake --build build
- name: Test
working-directory: build
env:
CTEST_OUTPUT_ON_FAILURE: 1
run: ctest -C ${{ matrix.configuration }}