diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ecfb41f7..0a926b9e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 go@1.20 || true export PATH=$HOMEBREW_CELLAR/Cellar/go/1.20.2/bin:$PATH @@ -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/upload-artifact@v3.1.0 with: name: altbn128 native build artifacts @@ -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 go@1.20 || true export PATH=$HOMEBREW_CELLAR/go/1.20.2/bin:$PATH @@ -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/upload-artifact@v3.1.0 with: name: altbn128 native build artifacts