Merge pull request #41 from ernestine-grossmann/master #10
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: C/C++ CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
strategy: | |
matrix: | |
compiler: | |
- { name: Clang, cc: clang, cxx: clang++ } | |
- { name: GNU, cc: gcc, cxx: g++ } | |
argument: [""] | |
timeout-minutes: 60 | |
steps: | |
- name: Install dependencies | |
run: sudo apt-get install -y libopenmpi-dev pybind11-dev | |
- uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Export compiler | |
run: | | |
echo CXX=${{ matrix.compiler.cxx }} >> $GITHUB_ENV | |
echo CC=${{ matrix.compiler.cc }} >> $GITHUB_ENV | |
- name: Build | |
run: ./compile_withcmake.sh ${{ matrix.argument }} | |