Skip to content

Commit

Permalink
explicitly add homebrew installed packages to PATH in build step
Browse files Browse the repository at this point in the history
Signed-off-by: garyschulte <[email protected]>
  • Loading branch information
garyschulte committed Jul 5, 2023
1 parent 520ff8a commit e3b6e57
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ jobs:
fi
# secp256k1 dependencies
brew install autoconf automake libtool
export HOMEBREW_PATH=$HOMEBREW_CELLAR/autoconf/*/bin/
export HOMEBREW_PATH=$HOMEBREW_CELLAR/automake/*/bin/:$HOMEBREW_PATH
export HOMEBREW_PATH=$HOMEBREW_CELLAR/libtool/*/bin/:$HOMEBREW_PATH
# gnark dependencies
brew install [email protected] || true
export PATH=$HOMEBREW_CELLAR/Cellar/go/1.20.2/bin:$PATH
Expand All @@ -137,12 +140,15 @@ jobs:
export PATH="$HOME/.cargo/bin:$PATH"
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin
echo "HOMEBREW_PATH=$HOMEBREW_PATH" >> $GITHUB_ENV
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build
run: ./build.sh
run: |
export PATH=$HOMEBREW_PATH:$PATH
./build.sh
- uses: actions/[email protected]
with:
name: altbn128 native build artifacts
Expand Down Expand Up @@ -192,7 +198,10 @@ jobs:
export PATH=$HOMEBREW_PREFIX/bin:$PATH
fi
# secp256k1, gnark dependencies
brew install autoconf automake libtool
brew install autoconf automake libtool
export HOMEBREW_PATH=$HOMEBREW_CELLAR/autoconf/*/bin/
export HOMEBREW_PATH=$HOMEBREW_CELLAR/automake/*/bin/:$HOMEBREW_PATH
export HOMEBREW_PATH=$HOMEBREW_CELLAR/libtool/*/bin/:$HOMEBREW_PATH
# gnark dependencies
brew install [email protected] || true
export PATH=$HOMEBREW_CELLAR/go/1.20.2/bin:$PATH
Expand All @@ -203,12 +212,15 @@ jobs:
export PATH="$HOME/.cargo/bin:$PATH"
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin
echo "HOMEBREW_PATH=$HOMEBREW_PATH" >> $GITHUB_ENV
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build
run: ./build.sh
run: |
export PATH=$HOMEBREW_PATH:$PATH
./build.sh
- uses: actions/[email protected]
with:
name: altbn128 native build artifacts
Expand Down

0 comments on commit e3b6e57

Please sign in to comment.