Skip to content

Commit

Permalink
Fix build on macOS CI runners (#1158)
Browse files Browse the repository at this point in the history
In order to work around a homebrew issue with pkg-config on github
runners (see actions/runner-images#10984),
temporarily run a command to uninstall `pkg-config@0.29.2`.

### Does this change impact existing behavior?

No. Workflow change only.

### Does this change need a changelog entry?

No.

---

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and I agree to the terms of
the [Developer Certificate of Origin
(DCO)](https://developercertificate.org/).

Signed-off-by: Alessandro Passaro <alexpax@amazon.co.uk>
  • Loading branch information
passaro authored Nov 22, 2024
1 parent 2337bf9 commit ea5c637
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,15 @@ jobs:
with:
submodules: true
- name: Install dependencies
run: |
brew update > /dev/null && brew install pkg-config
# Temporarily uninstall pkg-config@0.29.2 in order to work around a homebrew issue with pkg-config
# on github runners: https://github.com/actions/runner-images/issues/10984.
# Once the runners' image is updated (tracking https://github.com/actions/runner-images/pull/11011),
# we could revert to just:
# brew update > /dev/null && brew install pkgconfig
run: |
brew update
brew uninstall --ignore-dependencies --force pkg-config@0.29.2
brew install pkgconf
- name: Install fuse
run: |
brew install --cask macfuse
Expand Down

0 comments on commit ea5c637

Please sign in to comment.