Skip to content

Windows

Windows #487

Workflow file for this run

name: Windows
on:
push:
schedule:
- cron: 0 4 * * MON
env:
BUILD_RELEASE: Release
BUILD_DEBUG: Debug
CMAKE_GENERATOR: Ninja
jobs:
build_release:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- name: Setup MinGW native environment
uses: msys2/setup-msys2@v2
with:
msystem: MSYS
update: true
install: >-
git
gcc
mingw-w64-ucrt-x86_64-toolchain
base-devel
mingw-w64-x86_64-gcc-fortran
python
python-pip
cmake
ninja
make
patch
- name: Install fypp
run: pip install fypp
- name: Configure
run: >-
cmake .
-B build -DCMAKE_BUILD_TYPE=$BUILD_RELEASE -DCMAKE_Fortran_COMPILER=mingw-w64-x86_64-gcc-fortran
- name: Build
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build build
- name: Test
working-directory: ${{runner.workspace}}/lion-cpp/build
# Execute the build. You can specify a specific target with "--target <NAME>"
run: ctest --verbose
build_debug:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
- name: Setup MinGW native environment
uses: msys2/setup-msys2@v2
with:
msystem: MSYS
update: true
install: >-
git
gcc
gcc-fortran
python
python-pip
cmake
ninja
make
patch
- name: Install fypp
run: pip install fypp
- name: Configure
run: >-
cmake .
-B build -DCMAKE_BUILD_TYPE=$BUILD_DEBUG -DCMAKE_Fortran_COMPILER=mingw-w64-x86_64-gcc-fortran
- name: Build
# Execute the build. You can specify a specific target with "--target <NAME>"
run: cmake --build build
- name: Test
working-directory: ${{runner.workspace}}/lion-cpp/build
# Execute the build. You can specify a specific target with "--target <NAME>"
run: ctest --verbose