Skip to content

Commit

Permalink
CI: matrix.os == 'ubuntu-latest' is unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
kvrigor committed Nov 27, 2024
1 parent f09510c commit addbe4a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ jobs:
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: |
requirements.txt
cache-dependency-path: requirements.txt

- name: Install non-Python dependencies on Ubuntu
if: matrix.os == 'ubuntu-latest'
- name: Install GCC and OpenMPI
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: gfortran openmpi-bin libopenmpi-dev libhdf5-openmpi-dev
Expand All @@ -32,8 +30,7 @@ jobs:
# 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'
- name: Set default MPI and HDF5 C compilers
run: |
sudo apt-get update
sudo apt-get install --reinstall openmpi-bin libhdf5-openmpi-dev
Expand Down

0 comments on commit addbe4a

Please sign in to comment.