Our shell script for installing dependencies uses a feature that is only
available starting with bash 4. macOS ships with bash 3, so install bash
from homebrew in the GitHub Actions workflow when runing on macOS.
Previously we could install bash in our shell script for installing
dependencies but this depedencies install script now needs the bash 4
feature.
The feature in question is for bash to be able to match multiple
patterns in a case statement.
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
mingw-w64-${{matrix.arch}}-python-statsmodels
mingw-w64-${{matrix.arch}}-python-sphinx
+ - name: install bash 4 (macOS)
+ if: ${{ contains( matrix.build, 'macOS' ) }}
+ run: HOMEBREW_NO_AUTO_UPDATE=1 brew install bash
- name: Install dependencies
run: ${{matrix.shell}} ./ci/actions-install.sh
if: ${{ !contains( matrix.build, 'msys2' ) }}
-#!/bin/bash
+#!/usr/bin/env bash
# This script expects to be invoked from the base fio directory.
set -eu
#echo "Updating homebrew..."
#brew update >/dev/null 2>&1
echo "Installing packages..."
- HOMEBREW_NO_AUTO_UPDATE=1 brew install cunit libnfs bash
+ HOMEBREW_NO_AUTO_UPDATE=1 brew install cunit libnfs
pip3 install scipy six statsmodels sphinx
}