This GitHub Action sets up environment variables for library paths and include paths on macOS. It is particularly useful for projects that depend on Homebrew-installed libraries.
- name: Export paths
uses: spezifisch/export-homebrew-build-paths@v1.0.0
Then do go build
or your usual build command which links against a library installed by Homebrew.