Gpu 2decomp dev #1182
Workflow file for this run
This file contains hidden or 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 | |
on: [push, pull_request] | |
jobs: | |
main: | |
# https://stackoverflow.com/a/59775665/8893833 | |
if: "!contains(github.event.commits[0].message, '[skip ci]')" | |
name: ${{ matrix.os }} ${{ matrix.build-type }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest', 'macos-latest'] | |
build-type: ['Debug', 'Release'] | |
steps: | |
- name: Check-out project | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Set up repository | |
# Clone all history leading to the tip of a single branch | |
# See https://stackoverflow.com/a/44036486. | |
run: | | |
git remote set-branches --add origin master | |
git fetch origin master | |
- name: Install system dependencies | |
run: bash .github/scripts/install_deps.sh | |
- name: Install python dependencies | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
auto-update-conda: true | |
activate-environment: udales | |
environment-file: environment.yml | |
- name: Build and test uDALES | |
# 'shell' required to activate environment. | |
# See https://github.com/conda-incubator/setup-miniconda#IMPORTANT. | |
shell: bash -l {0} | |
run: | | |
if [ ${{ matrix.os }} = 'macos-latest' ]; then export FC=gfortran-12; fi | |
python3 -u tests/run_tests.py master $GITHUB_SHA ${{ matrix.build-type}} | |
- name: Build docs | |
if: matrix.os == 'ubuntu-latest' && matrix.build-type == 'Release' | |
shell: bash -l {0} | |
run: | | |
mkdocs build --site-dir build/html | |
ford docs/udales-docs-software.md | |
- name: Publish docs | |
if: matrix.os == 'ubuntu-latest' && matrix.build-type == 'Release' && github.event_name == 'push' && github.ref == 'refs/heads/master' | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: build/html/ | |
force_orphan: true |