-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (46 loc) · 1.33 KB
/
Intel.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
50
51
52
53
54
55
name: Intel
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
Intel:
runs-on: ubuntu-latest
strategy:
matrix:
compilers: ["oneapi", "classic"]
steps:
- name: "Install Intel"
uses: NOAA-EMC/ci-install-intel-toolkit@develop
with:
compiler-setup: ${{ matrix.compilers }}
- name: checkout-pfunit
uses: actions/checkout@v4
with:
repository: Goddard-Fortran-Ecosystem/pFUnit
path: pfunit
- name: cache-pfunit
id: cache-pfunit
uses: actions/cache@v4
with:
path: ~/pfunit
key: pfunit-${{ runner.os }}-${{ matrix.compilers }}
- name: build-pfunit
if: steps.cache-pfunit.outputs.cache-hit != 'true'
run: |
cmake -S pfunit -B pfunit/build -DSKIP_MPI=YES -DSKIP_ESMF=YES -DSKIP_FHAMCREST=YES -DCMAKE_INSTALL_PREFIX=~/pfunit -DCMAKE_BUILD_TYPE=Release
cmake --build pfunit/build --parallel 2 --verbose
cmake --install pfunit/build
- name: checkout
uses: actions/checkout@v4
with:
path: sfcio
- name: build
run: |
cmake -S sfcio -B sfcio/build -DENABLE_TESTS=ON -DCMAKE_PREFIX_PATH="~/pfunit"
cmake --build sfcio/build --parallel 2 --verbose
- name: test
run: ctest --test-dir sfcio/build --verbose