Skip to content

Commit

Permalink
CI: Unlink deprecated brew pkg-config
Browse files Browse the repository at this point in the history
macOS GitHub Action Runners come with pkg-config installed, but this
package is deprecated in brew. Replace it with pkgconf.

This can be reverted when Action Runners are no longer imaged with
pkg-config.
  • Loading branch information
mferrera committed Nov 25, 2024
1 parent 743b2ce commit af8d0ae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ jobs:

- name: Install HDF5 for macOS arm64
if: ${{ matrix.os_arch[1] == 'macosx_arm64' }}
run: brew install hdf5
run: |
# pkg-config formula is deprecated but it's still installed
# in GitHub Actions runner now. We can remove this once
# pkg-config formula is removed from GitHub Actions runner.
brew unlink [email protected]
brew install pkgconf
echo "PKG_CONFIG=$(brew --prefix pkgconf)/bin/pkgconf" >> $GITHUB_ENV
brew install hdf5
- name: Install cibuildwheel
run: python -m pip install -U pip wheel cibuildwheel twine
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ jobs:
- name: Fix macos HDF5 library for pytables install (works for python >= 3.10)
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew update
# pkg-config formula is deprecated but it's still installed
# in GitHub Actions runner now. We can remove this once
# pkg-config formula is removed from GitHub Actions runner.
brew unlink [email protected]
brew install pkgconf
echo "PKG_CONFIG=$(brew --prefix pkgconf)/bin/pkgconf" >> $GITHUB_ENV
brew install hdf5
- name: Setup xtgeo
Expand Down

0 comments on commit af8d0ae

Please sign in to comment.