Add dDAE BCs for Nystrom #475
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/deploy docs | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
concurrency: | |
# Cancels jobs running if new commits are pushed | |
group: > | |
${{ github.workflow }}- | |
${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build docs | |
runs-on: [self-hosted, Linux] | |
container: | |
image: firedrakeproject/firedrake-docdeps:latest | |
steps: | |
- name: Fix HOME | |
# For unknown reasons GitHub actions overwrite HOME to /github/home | |
# which will break everything unless fixed | |
# (https://github.com/actions/runner/issues/863) | |
run: echo "HOME=/home/firedrake" >> "$GITHUB_ENV" | |
- uses: actions/checkout@v4 | |
with: | |
path: irksome-repo | |
- name: Install Irksome | |
run: | | |
: # Pass '--system-site-packages' so already installed packages can be found | |
python3 -m venv --system-site-packages venv-irksome | |
. venv-irksome/bin/activate | |
pip install --verbose './irksome-repo[docs]' | |
- name: Check documentation links | |
if: github.ref == 'refs/heads/master' | |
run: | | |
. venv-irksome/bin/activate | |
make -C irksome-repo/docs linkcheck | |
- name: Build docs | |
run: | | |
. venv-irksome/bin/activate | |
cd irksome-repo/docs | |
make html | |
make latex | |
make latexpdf | |
- name: Copy manual to HTML tree | |
run: | | |
cd irksome-repo/docs | |
cp build/latex/Irksome.pdf build/html/_static/manual.pdf | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
name: github-pages | |
path: /__w/Irksome/Irksome/irksome-repo/docs/build/html | |
retention-days: 1 | |
- name: Deploy docs | |
if: github.ref == 'refs/heads/master' | |
uses: crazy-max/ghaction-github-pages@v4 | |
with: | |
target_branch: gh-pages | |
build_dir: ./irksome-repo/docs/build/html | |
keep_history: false | |
allow_empty_commit: false | |
jekyll: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |