-
-
Notifications
You must be signed in to change notification settings - Fork 23
49 lines (39 loc) · 969 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
name: ci
'on':
workflow_dispatch:
push:
branches:
- main
pull_request:
env:
build_path: ${{github.workspace}}/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: Create 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 --output-on-failure
- name: Run examples
working-directory: ${{env.build_path}}
run: make run_all_examples
...