Skip to content

Commit b00ba02

Browse files
committed
Fix issue "./codesign.sh: line 39: pcregrep: command not found".
For some reason, pcregrep was available on macOS Github images previously, but no longer. Ensure that pcregrep is installed.
1 parent 54c3c3c commit b00ba02

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/installer-macos.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ jobs:
6666
with:
6767
python-version: '3.9.14'
6868
architecture: 'x64'
69+
- name: Install pcregrep
70+
run: |
71+
if [[ -z "$(which pcregrep)" ]]; then
72+
brew install pcre
73+
else
74+
echo "$(which pcregrep) already installed."
75+
fi
6976
- name: Install Dependencies
7077
run: |
7178
INSTALL_FLAGS=()

.github/workflows/installers-conda.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,15 @@ jobs:
121121
with:
122122
fetch-depth: 0
123123

124+
- name: Install pcregrep
125+
if: runner.os == 'macOS'
126+
run: |
127+
if [[ -z "$(which pcregrep)" ]]; then
128+
brew install pcre
129+
else
130+
echo "$(which pcregrep) already installed."
131+
fi
132+
124133
- name: Setup Build Environment
125134
uses: mamba-org/provision-with-micromamba@main
126135
with:

0 commit comments

Comments
 (0)