Skip to content

testing fortuno

testing fortuno #41

Workflow file for this run

---
name: ci
'on':
workflow_dispatch:
push:
branches:
- main
pull_request:
env:
build_path: ${{github.workspace}}/build
fortuno_build_path: ${{github.workspace}}/fortuno/build
jobs:
build_and_test:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, ubuntu-24.04]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Display versions
run: |
gfortran --version
cmake --version
- name: Clone Fortuno
run: git clone https://github.com/fortuno-repos/fortuno.git ${{github.workspace}}/fortuno
- name: Create Fortuno Build Directory
run: cmake -E make_directory ${{env.fortuno_build_path}}
- name: Build Fortuno
working-directory: ${{env.fortuno_build_path}}
run: |
cmake .. -DUSE_COMPILE_OPTIONS=OFF
make
- name: Create Project Build Directory
run: cmake -E make_directory ${{env.build_path}}
- name: Configure CMake
working-directory: ${{env.build_path}}
run: cmake ../
- name: Build
working-directory: ${{env.build_path}}
run: cmake --build .
- name: Test
working-directory: ${{env.build_path}}
run: ctest
- name: Run examples
working-directory: ${{env.build_path}}
run: make run_all_examples
...