Skip to content

CI #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 8, 2022
Merged

CI #87

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: ci

on:

push:
paths:
- ".github/workflows/ci.yml"
- "fpm.toml"
- "**.f90"

pull_request:
paths:
- ".github/workflows/ci.yml"
- "fpm.toml"
- "**.f90"

env:
FPM_FFLAGS: -I/usr/include/hdf5/serial
FPM_LDFLAGS: -L/usr/lib/x86_64-linux-gnu/hdf5/serial

jobs:

build_and_test_debug_profile:
name: Build and test in debug mode
runs-on: ubuntu-latest

steps:

- uses: fortran-lang/setup-fpm@v4
with:
fpm-version: "v0.6.0"

- name: Install HDF5
run: |
sudo apt update
sudo apt install --no-install-recommends libhdf5-dev
- uses: actions/checkout@v2

- name: Compile
run: fpm build --profile debug

- name: Test
run: fpm test --profile debug

build_and_test_release_profile:
name: Build and test in release mode
runs-on: ubuntu-latest

steps:

- uses: fortran-lang/setup-fpm@v4
with:
fpm-version: "v0.6.0"

- name: Install HDF5
run: |
sudo apt update
sudo apt install --no-install-recommends libhdf5-dev
- uses: actions/checkout@v2

- name: Compile
run: fpm build --profile release

- name: Test
run: fpm test --profile release