From addbe4adb310e4bbc800dce41c4ed624aa3c7187 Mon Sep 17 00:00:00 2001 From: kvrigor Date: Wed, 27 Nov 2024 12:55:11 +0100 Subject: [PATCH] CI: matrix.os == 'ubuntu-latest' is unnecessary --- .github/workflows/deploy-book.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy-book.yml b/.github/workflows/deploy-book.yml index 3132e75..1616abf 100644 --- a/.github/workflows/deploy-book.yml +++ b/.github/workflows/deploy-book.yml @@ -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 @@ -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