Bugfixing #4
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: unittest | |
on: | |
- push | |
jobs: | |
unittest: | |
name: unittest | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install-packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install libomp-dev libopenmpi-dev openmpi-bin openmpi-common ninja-build | |
- name: build-mpi | |
run: | | |
mkdir build-mpi | |
cd build-mpi | |
cmake .. | |
ninja | |
ninja test | |
cd .. | |
- name: build-nompi | |
run: | | |
mkdir build-nompi | |
cd build-nompi | |
cmake .. -DUSE_MPI=OFF | |
ninja | |
ninja test | |
cd .. |