Merge pull request #145 from AetherModel/IEaddition #223
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |