Fix perl modules installation on OS X

Homebrew can change the installed Perl version. Therefore, the
installation of custom modules should be done after the last Homebrew
call.
This commit is contained in:
Jan Nidzwetzki 2024-01-02 10:43:13 +01:00 committed by Jan Nidzwetzki
parent 28a1ebe2c8
commit 75caf5df70

View File

@ -70,8 +70,6 @@ jobs:
if: runner.os == 'macOS'
run: |
brew install gawk
sudo perl -MCPAN -e "CPAN::Shell->notest('install', 'IPC::Run')"
sudo perl -MCPAN -e "CPAN::Shell->notest('install', 'Test::Most')"
# Force use of OpenSSL 3.1.4, since OpenSSL 3.2.0 crashes with recent
# PostgreSQL versions on OS X (see https://github.com/Homebrew/homebrew-core/issues/155651)
@ -79,6 +77,10 @@ jobs:
curl -L https://raw.githubusercontent.com/Homebrew/homebrew-core/e68186ba5a05a6ea9a30d6c7744de9a46bd3aadd/Formula/o/openssl@3.rb > openssl@3.rb
brew install openssl@3.rb
# Install perl modules after last Homebew call, since Homebrew can change the perl version
sudo perl -MCPAN -e "CPAN::Shell->notest('install', 'IPC::Run')"
sudo perl -MCPAN -e "CPAN::Shell->notest('install', 'Test::Most')"
- name: Setup macOS coredump directory
if: runner.os == 'macOS'
run: sudo chmod 777 /cores