Skip to content

Commit

Permalink
Fix build issue with macOS runners (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
briancorbin authored Jun 8, 2022
1 parent a48e56f commit d6cbe2e
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,7 @@ jobs:

- name: Brew Bundle
run: |
brew update --preinstall
brew bundle --no-upgrade
- name: Set OpenSSL Path Vars
run: |
export PATH="/usr/local/opt/openssl@3/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl@3/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@3/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"
brew bundle
- name: Git Submodule
run: |
Expand Down Expand Up @@ -73,6 +65,10 @@ jobs:
- name: Cargo Build
if: steps.artifact_cache.outputs.cache-hit != 'true'
run: |
export PATH="/usr/local/opt/openssl@3/bin:$PATH"
export LDFLAGS="-L/usr/local/opt/openssl@3/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@3/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig"
cargo build --release
- name: Copy binaries to cache folder
Expand Down Expand Up @@ -129,15 +125,7 @@ jobs:

- name: Brew Bundle
run: |
brew update --preinstall
brew bundle --no-upgrade
- name: Set OpenSSL Path Vars
run: |
export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig"
brew bundle
- name: Git Submodule
run: |
Expand Down Expand Up @@ -167,6 +155,10 @@ jobs:
- name: Cargo Build
if: steps.artifact_cache.outputs.cache-hit != 'true'
run: |
export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib"
export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"
export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig"
cargo build --release
- name: Copy binaries to cache folder
Expand Down

0 comments on commit d6cbe2e

Please sign in to comment.