fixup! Get mod files from neurodamus-models repo Get latest tags auto… #282
Workflow file for this run
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: run-test | |
on: | |
push: | |
jobs: | |
build: | |
name: run-test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-20.04 ] | |
config: | |
- {cmake_option: "-DSONATA_REPORT_ENABLE_SUBMODULES=ON -DSONATA_REPORT_ENABLE_CONVERTER=ON", mpi: ON} | |
- {cmake_option: "-DSONATA_REPORT_ENABLE_SUBMODULES=ON -DSONATA_REPORT_ENABLE_MPI=OFF -DSONATA_REPORT_ENABLE_CONVERTER=ON", mpi: OFF} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Fetch repository | |
run: git fetch --prune --unshallow | |
- name: Get submodules | |
run: git submodule update --init --force --recursive | |
- name: Install parallel packages | |
if: ${{ matrix.config.mpi == 'ON' }} | |
run: sudo apt-get install mpich libmpich-dev libhdf5-mpich-dev hdf5-tools | |
- name: Install serial packages | |
if: ${{ matrix.config.mpi == 'OFF' }} | |
run: sudo apt-get install libhdf5-dev hdf5-tools | |
- name: Build and run tests | |
run: mkdir BUILD && cd BUILD && cmake ${cmake_option} .. && make all && ctest --output-on-failure | |
env: | |
cmake_option: ${{ matrix.config.cmake_option }} |