Refactor CMake and CI scripting #162
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: Check Fortran API | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches-ignore: | |
- documentation | |
workflow_dispatch: | |
jobs: | |
API: | |
runs-on: ubuntu-22.04 | |
env: | |
FC: gfortran-12 | |
FFLAGS: "-m64 -std=f2008 -march=native -fbounds-check -fmodule-private -fimplicit-none -finit-real=nan" | |
RTE_KERNELS: extern | |
CMAKE_BUILD_PARALLEL_LEVEL: 8 | |
VERBOSE: | |
steps: | |
# | |
# Check out repository under $GITHUB_WORKSPACE | |
# | |
- name: Check out code | |
uses: actions/checkout@v4 | |
# | |
# Build libraries | |
# | |
- name: Build libraries | |
run: | | |
$FC --version | |
cmake -S . -B build \ | |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ | |
-DKERNEL_MODE=$RTE_KERNELS | |
cmake --build build |