-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: garyschulte <[email protected]>
- Loading branch information
1 parent
520ff8a
commit 9a14981
Showing
1 changed file
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,25 +124,35 @@ jobs: | |
# use local homebrew 4.0.26 release, as brew is not available on macstadium: | ||
mkdir $HOMEBREW_PREFIX && curl -L https://github.com/Homebrew/brew/tarball/eff45ef570f265e226f14ce91da72d7a6e7d516a| tar xz --strip 1 -C homebrew | ||
export PATH=$HOMEBREW_PREFIX/bin:$PATH | ||
export HOMEBREW_CELLAR=$HOMEBREW_PREFIX/Cellar | ||
fi | ||
# secp256k1 dependencies | ||
brew install autoconf automake libtool | ||
export HOMEBREW_PATH=`ls -ld $HOMEBREW_CELLAR/autoconf/*/bin/`:$HOMEBREW_PATH | ||
export HOMEBREW_PATH=`ls -ld $HOMEBREW_CELLAR/automake/*/bin/`:$HOMEBREW_PATH | ||
export HOMEBREW_PATH=`ls -ld $HOMEBREW_CELLAR/libtool/*/bin/`:$HOMEBREW_PATH | ||
# gnark dependencies | ||
brew install [email protected] || true | ||
export PATH=$HOMEBREW_CELLAR/Cellar/go/1.20.2/bin:$PATH | ||
export HOMEBREW_PATH=`ls -ld $HOMEBREW_CELLAR/Cellar/go/*/bin`:$HOMEBREW_PATH | ||
# rust dependencies | ||
export CARGO_HOME="$HOME/.cargo" | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.68.2 | ||
# install both x86 and arm64 toolchains | ||
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 HOMEBREW_PATH=${{ env.HOMEBREW_PATH }} | ||
echo $HOMEBREW_PATH | ||
export PATH=$HOMEBREW_PATH:$PATH | ||
echo $PATH | ||
./build.sh | ||
- uses: actions/[email protected] | ||
with: | ||
name: altbn128 native build artifacts | ||
|
@@ -190,25 +200,35 @@ jobs: | |
# use local homebrew 4.0.26 release, as brew is not available on macstadium: | ||
mkdir $HOMEBREW_PREFIX && curl -L https://github.com/Homebrew/brew/tarball/eff45ef570f265e226f14ce91da72d7a6e7d516a| tar xz --strip 1 -C homebrew | ||
export PATH=$HOMEBREW_PREFIX/bin:$PATH | ||
export HOMEBREW_CELLAR=$HOMEBREW_PREFIX/Cellar | ||
fi | ||
# secp256k1, gnark dependencies | ||
brew install autoconf automake libtool | ||
brew install autoconf automake libtool | ||
export HOMEBREW_PATH=`ls -ld $HOMEBREW_CELLAR/autoconf/*/bin/`:$HOMEBREW_PATH | ||
export HOMEBREW_PATH=`ls -ld $HOMEBREW_CELLAR/automake/*/bin/`:$HOMEBREW_PATH | ||
export HOMEBREW_PATH=`ls -ld $HOMEBREW_CELLAR/libtool/*/bin/`:$HOMEBREW_PATH | ||
# gnark dependencies | ||
brew install [email protected] || true | ||
export PATH=$HOMEBREW_CELLAR/go/1.20.2/bin:$PATH | ||
export HOMEBREW_PATH=`ls -ld $HOMEBREW_CELLAR/go/*/bin`:$HOMEBREW_PATH | ||
# rust dependencies | ||
export CARGO_HOME="$HOME/.cargo" | ||
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain 1.68.2 | ||
# install both x86 and arm64 toolchains | ||
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 HOMEBREW_PATH=${{ env.HOMEBREW_PATH }} | ||
echo $HOMEBREW_PATH | ||
export PATH=$HOMEBREW_PATH:$PATH | ||
echo $PATH | ||
./build.sh | ||
- uses: actions/[email protected] | ||
with: | ||
name: altbn128 native build artifacts | ||
|