cmake build and CI testing (#67) #1
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: GNU MPI CI | |
on: | |
push: | |
branches: [ "master", "dev" ] | |
paths-ignore: | |
- LICENSE.md | |
- README.md | |
pull_request: | |
branches: [ "master", "dev" ] | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
env: | |
CXX: mpic++ | |
CXXFLAGS: -g -O3 -DHAVE_MPI -DHAVE_ASYNC_MPI -std=c++14 -Wall | |
LDFLAGS: -lmpi | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Install MPI | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y openmpi-bin libopenmpi-dev | |
- name: Clean up | |
run: | | |
cd ${{runner.workspace}}/Quicksilver/src | |
make clean | |
- name: Make the code | |
run: | | |
cd ${{runner.workspace}}/Quicksilver/src | |
make CXX="$CXX" CXXFLAGS="$CXXFLAGS" CPPFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" -j4 | |
- name: Run smoke test | |
run: | | |
mpirun -n 1 ${{runner.workspace}}/Quicksilver/src/qs |