-
Notifications
You must be signed in to change notification settings - Fork 28
40 lines (40 loc) · 1.14 KB
/
main.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
# Github actions CI file
# Ryan Mulhall 2020
# CI testing for the FRE-NCtools repo, builds and runs unit tests
# image dockerfile is maintained here:
# https://gitlab.gfdl.noaa.gov/fre/hpc-me
name: FRE-NCtools CI
on: [push, pull_request]
jobs:
CI:
runs-on: ubuntu-latest
strategy:
matrix:
with_mpi: ['','--with-mpi']
enable_quad_precision: ['', '--enable-quad-precision']
container:
image: ghcr.io/noaa-gfdl/fre-nctools-ci-rocky-gnu:14.2.0_v2
env:
MPI: ${{ matrix.with_mpi }}
QUAD_P: ${{ matrix.enable_quad_precision }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure
run: |
mkdir build && cd build
autoreconf -i ../configure.ac
../configure $MPI $QUAD_P || cat config.log
- name: Build
run: make -C build -j
- name: Run most tests (skip the slow ones)
run: make -C build -j check
- name: Save log file on failure
uses: actions/[email protected]
if: failure()
with:
name: test-suites
path: |
build/tests/test-suite.log