-
Notifications
You must be signed in to change notification settings - Fork 31
38 lines (31 loc) · 892 Bytes
/
main.yml
File metadata and controls
38 lines (31 loc) · 892 Bytes
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
# This workflow will install the Aether code and eventually run tests
name: Compilation Test
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
cc: ["gcc-default"]
cflag: ["-DUSE_NETCDF=Y", "", "-DUSE_DOUBLE_PRECISION=Y"]
name: ${{ matrix.cc }} on ${{ matrix.os }} with flag ${{ matrix.cflag }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Ubuntu dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
cat requirements.linux | xargs sudo apt-get install
- name: CMake configure
run: |
mkdir build
cd build
cmake ${{ matrix.cflag }} ..
make VERBOSE=1
- name: Test run
run: |
cp -R share/run ./run_test
cd run_test
./aether