CI #42
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: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Apt dependencies | |
shell: bash | |
run: | | |
sudo apt -y update | |
sudo apt install -y libgcc-9-dev \ | |
libstdc++-9-dev \ | |
libembree-dev \ | |
libhdf5-dev \ | |
libeigen3-dev \ | |
cmake | |
- name: Build MOAB | |
shell: bash | |
run: | | |
cd ~ | |
git clone https://bitbucket.org/fathomteam/moab.git | |
cd moab | |
git checkout 5.3.1 | |
mkdir build | |
cd build | |
cmake -DENABLE_HDF5=ON -DENABLE_BLASLAPACK=OFF -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release .. | |
make -j4 | |
sudo make install | |
- name: Build libMesh | |
shell: bash | |
run: | | |
cd ~ | |
git clone https://github.com/libMesh/libmesh.git | |
cd libmesh | |
git checkout v1.7.0 | |
git submodule update --init --recursive | |
mkdir build | |
cd build | |
../configure --prefix=/usr/local --enable-exodus --disable-netcdf-4 --enable-optimize --disable-mpi | |
make -j2 | |
sudo make install | |
- name: Build | |
shell: bash | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DXDG_ENABLE_MOAB=ON -DXDG_ENABLE_LIBMESH=ON | |
make -j4 | |
- name: Test | |
shell: bash | |
run: | | |
cd build | |
ctest -j4 --output-on-failure | |
- name: Setup tmate session | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 |