Skip to content

Commit

Permalink
chore: add ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 committed Sep 16, 2024
1 parent 2f1522f commit 37b5986
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

- name: Run examples
working-directory: ${{env.build_path}}
run: make run_all_examples
...

0 comments on commit 37b5986

Please sign in to comment.