Simplify templates in par_strength #84
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 | |
env: | |
CTEST_NO_TEST_ACTION: error | |
HOMEBREW_NO_INSTALL_CLEANUP: 1 | |
on: | |
push: | |
jobs: | |
core: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Linux dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install cmake mpich libmpich-dev liblapack-dev | |
- name: Install MacOS dependencies | |
if: matrix.os == 'macos-latest' | |
run: | | |
# brew update # fails | |
brew install mpich2 lapack cmake | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Configure code | |
if: matrix.os == 'ubuntu-latest' | |
run: cmake -Bbuild -DENABLE_COVERAGE=1 | |
- name: Configure code | |
if: matrix.os == 'macos-latest' | |
run: cmake -Bbuild | |
- name: Build code | |
run: cmake --build build --parallel | |
- name: Test code | |
run: ctest --test-dir build -V --build-config Debug | |
- name: collect code coverage | |
run: bash <(curl -s https://codecov.io/bash) || echo "codecov failure" |