Skip to content

Merge pull request #89 from pcraster/gh88 #3

Merge pull request #89 from pcraster/gh88

Merge pull request #89 from pcraster/gh88 #3

Workflow file for this run

name: Windows CI
on:
push:
branches-ignore:
- "ghxyz"
paths:
- ".github/workflows/windows.yml"
- "environment/cmake/**"
- "source/**"
jobs:
build:
strategy:
matrix:
os: ["windows-2022"]
fail-fast: false
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }}
steps:
- name: checkout fern
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install boost
uses: MarkusJx/install-boost@v2.4.4
id: install-boost
with:
# https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json
boost_version: 1.78.0
platform_version: 2022
toolset: msvc
link: shared
- name: configure fern
shell: bash -l {0}
env:
Boost_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
run: |
mkdir build
cmake \
-S . \
-B build \
-G "Visual Studio 17 2022" -A x64 \
-D CMAKE_CONFIGURATION_TYPES="Release;Debug" \
-D FERN_BUILD_ALGORITHM=TRUE \
-D FERN_BUILD_TEST=TRUE
- name: build debug
shell: bash -l {0}
run: |
cmake --build build --config Debug --target all
- name: build release
shell: bash -l {0}
run: |
cmake --build build --config Release --target all
- name: test debug
shell: bash -l {0}
run: |
ctest --test-dir build --output-on-failure --build-config Debug
- name: test release
shell: bash -l {0}
run: |
ctest --test-dir build --output-on-failure --build-config Release