Skip to content

Commit

Permalink
Put back Homebrew hacks for x86 macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumol committed May 30, 2024
1 parent 40291f7 commit 87713dd
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/bare.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
windows:
# The type of runner that the job will run on
runs-on: windows-latest
timeout-minutes: ${{ matrix.tests.debug == 'yes' && 30 || 15 }}
timeout-minutes: ${{ matrix.tests.debug == 'yes' && 45 || 15 }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down Expand Up @@ -85,9 +85,24 @@ jobs:
with:
fetch-depth: 2

# Some Homebrew libs pollute the build.
# Also make sure binaries depending on these libs are out of the way.
- name: Hack Homebrew
run: |
sudo mv -v /usr/local/bin/git{,.saved}
sudo chmod -v a-r /usr/local/include/libintl.h
sudo chmod -v a-r /usr/local/opt/gettext/lib/libintl.*
- name: Build Pythia
run: ./build.sh build

# Fix back Homebrew, for working Shellcheck tests and tmate debugging.
- name: Unhack Homebrew
run: |
sudo chmod -v a+r /usr/local/opt/gettext/lib/libintl*
sudo chmod -v a+r /usr/local/include/libintl.h
sudo mv -v /usr/local/bin/git{.saved,}
- name: Test Pythia
run: ./build.sh test

Expand Down

0 comments on commit 87713dd

Please sign in to comment.