Skip to content

Commit

Permalink
more env shenanigans
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 9a14981
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9a14981

Please sign in to comment.