Time Evolution #186
Workflow file for this run
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: Build and test MRCPP | |
on: | |
push: | |
branches: | |
- master | |
- release/* | |
pull_request: | |
branches: | |
- master | |
- release/* | |
release: | |
types: | |
- created | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache conda | |
uses: actions/cache@v1 | |
env: | |
CACHE_NUMBER: 0 # Increase this value to reset cache if .github/mrcpp-gha.yml has not changed | |
with: | |
path: ~/conda_pkgs_dir | |
key: | |
${{ matrix.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('.github/mrcpp-gha.yml') }} | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
auto-activate-base: false | |
activate-environment: mrcpp-gha | |
environment-file: .github/mrcpp-gha.yml | |
channel-priority: true | |
python-version: 3.6 | |
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! | |
- name: Configure | |
shell: bash -l {0} | |
run: | | |
python ./setup --type=$BUILD_TYPE --omp --enable-examples --generator=Ninja --prefix=$GITHUB_WORKSPACE/Software/MRCPP build | |
- name: Build | |
shell: bash -l {0} | |
run: | | |
cmake --build build --config $BUILD_TYPE --target install -- -v -d stats | |
- name: Test | |
shell: bash -l {0} | |
run: | | |
cd build | |
ctest -C $BUILD_TYPE --output-on-failure --verbose |