Skip to content

Commit

Permalink
CI: Install Psdyac dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kvrigor committed Nov 27, 2024
1 parent c804362 commit f09510c
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/deploy-book.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Deploy Jupyter Book
name: Build IGA-Python Jupyter Book

on:
push:
Expand All @@ -20,8 +20,28 @@ jobs:
cache-dependency-path: |
requirements.txt
- name: Install non-Python dependencies on Ubuntu
if: matrix.os == 'ubuntu-latest'
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: gfortran openmpi-bin libopenmpi-dev libhdf5-openmpi-dev
version: 1.0
execute_install_scripts: true

# When loading cached apt packages, the default MPI compiler isn't set.
# Workaround is to 'reinstall' openmpi-bin, which doesn't actually perform
# installation (since openmpi-bin already exists), but instead reruns
# `update-alternatives` which fixes the symlinks to mpicc/mpif90.
- name: Set default MPI and HDF5 C compilers on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install --reinstall openmpi-bin libhdf5-openmpi-dev
- name: Install Jupyter Book and Psydac
run: pip3 install -r requirements.txt
run: |
pip3 install --upgrade pip
pip3 install -r requirements.txt
- name: Build Jupyter Book
run: jupyter-book build .
Expand Down

0 comments on commit f09510c

Please sign in to comment.