Skip to content

Commit 5413d1f

Browse files
Update build.yml
1 parent 105c2c9 commit 5413d1f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,16 @@ jobs:
5757
run: |
5858
echo -e "2\ny\ny\ny\ny\ny" | ./build_adventurecoin_ubuntu.sh
5959
60-
- name: Install Protobuf (macOS)
60+
- name: Remove conflicting Protobuf versions (macOS)
6161
if: inputs.os_target == 'macos'
6262
run: |
63-
brew install protobuf@3
64-
echo 'PATH="/opt/homebrew/opt/protobuf@3/bin:$PATH"' >> $GITHUB_ENV
65-
echo 'LDFLAGS="-L/opt/homebrew/opt/protobuf@3/lib $LDFLAGS"' >> $GITHUB_ENV
66-
echo 'CPPFLAGS="-I/opt/homebrew/opt/protobuf@3/include $CPPFLAGS"' >> $GITHUB_ENV
67-
echo 'PKG_CONFIG_PATH="/opt/homebrew/opt/protobuf@3/lib/pkgconfig:$PKG_CONFIG_PATH"' >> $GITHUB_ENV
63+
brew uninstall --ignore-dependencies protobuf || true
64+
brew cleanup
6865
6966
- name: Run macOS Build
7067
if: inputs.os_target == 'macos'
7168
run: |
69+
export PATH="$HOME/local/protobuf-3.6.1/bin:$PATH"
7270
echo -e "2\ny\ny" | ./build_adventurecoin_mac.sh
7371
7472
- name: Upload to GitHub Release

0 commit comments

Comments
 (0)