CI: Limit the number of jobs to 8. #91
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
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- os: 'ubuntu-22.04' | |
env: | |
CC: gcc | |
CXX: g++ | |
FC: gfortran | |
- os: 'ubuntu-22.04' | |
env: | |
CC: clang | |
CXX: clang++ | |
FC: gfortran | |
- os: 'ubuntu-20.04' | |
env: | |
CC: clang | |
CXX: clang++ | |
FC: gfortran | |
#- os: 'macos-latest' | |
# env: | |
# CC: gcc | |
# CXX: g++ | |
# FC: gfortran-10 | |
#- os: 'macos-latest' | |
# env: | |
# CC: clang | |
# CXX: clang++ | |
# FC: gfortran-10 | |
runs-on: ${{ matrix.os }} | |
env: ${{ matrix.env }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies (Linux) | |
run: | | |
sudo apt-get install gfortran libopenblas-dev libhdf5-openmpi-dev libptscotch-dev trilinos-all-dev libslicot-dev | |
if: startsWith( matrix.os, 'ubuntu' ) | |
- name: Install dependencies (MacOS) | |
run: | | |
brew tap nlesc/nlesc | |
brew install nlesc/nlesc/trilinos nlesc/nlesc/slicot | |
if: startsWith( matrix.os, 'macos' ) | |
- name: Checkout RAILS | |
uses: actions/checkout@v2 | |
with: | |
repository: Sbte/RAILS | |
path: RAILS | |
- name: Install RAILS | |
run: | | |
cd RAILS | |
mkdir build | |
cd build | |
cmake -DCMAKE_INSTALL_PREFIX=$HOME/local .. | |
make -j | |
make install | |
- name: Checkout JDQZPP | |
uses: actions/checkout@v2 | |
with: | |
repository: erik808/jdqzpp | |
path: JDQZPP | |
- name: Install JDQZPP | |
run: | | |
cd JDQZPP | |
mkdir build | |
cd build | |
cmake -DCMAKE_INSTALL_PREFIX=$HOME/local .. | |
make -j 8 | |
make install | |
- name: Build I-EMIC | |
run: | | |
mkdir build | |
cd build | |
cmake -DCMAKE_INSTALL_PREFIX=$HOME/local .. | |
make -j 8 | |
- name: Test I-EMIC | |
run: | | |
cd build | |
make check |