Skip to content

Commit 95b15f9

Browse files
shimwellpaulromano
andauthored
moved apt get to optional ci parts (#2970)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
1 parent ff50afb commit 95b15f9

2 files changed

Lines changed: 12 additions & 4 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,26 @@ jobs:
111111
run: |
112112
sudo apt -y update
113113
sudo apt install -y libpng-dev \
114-
libmpich-dev \
115114
libnetcdf-dev \
116115
libpnetcdf-dev \
117116
libhdf5-serial-dev \
118-
libhdf5-mpich-dev \
119117
libeigen3-dev
118+
119+
- name: Optional apt dependencies for MPI
120+
shell: bash
121+
if: ${{ matrix.mpi == 'y' }}
122+
run: |
123+
sudo apt install -y libhdf5-mpich-dev \
124+
libmpich-dev
120125
sudo update-alternatives --set mpi /usr/bin/mpicc.mpich
121126
sudo update-alternatives --set mpirun /usr/bin/mpirun.mpich
122127
sudo update-alternatives --set mpi-x86_64-linux-gnu /usr/include/x86_64-linux-gnu/mpich
123128
129+
- name: Optional apt dependencies for vectfit
130+
shell: bash
131+
if: ${{ matrix.vectfit == 'y' }}
132+
run: sudo apt install -y libblas-dev liblapack-dev
133+
124134
- name: install
125135
shell: bash
126136
run: |

‎tools/ci/gha-install-vectfit.sh‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ XTENSOR_PYTHON_REPO='https://github.com/xtensor-stack/xtensor-python'
1616
XTENSOR_BLAS_BRANCH='0.17.1'
1717
XTENSOR_BLAS_REPO='https://github.com/xtensor-stack/xtensor-blas'
1818

19-
sudo apt-get install -y libblas-dev liblapack-dev
20-
2119
cd $HOME
2220
git clone -b $PYBIND_BRANCH $PYBIND_REPO
2321
cd pybind11 && mkdir build && cd build && cmake .. && sudo make install

0 commit comments

Comments
 (0)