diff --git a/.github/workflows/build-docker-image-and-binaries.yaml b/.github/workflows/build-docker-image-and-binaries.yaml index 017ad5a5..5bf84941 100644 --- a/.github/workflows/build-docker-image-and-binaries.yaml +++ b/.github/workflows/build-docker-image-and-binaries.yaml @@ -13,9 +13,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [macos-latest] # arch: [amd64, arm64] - arch: [arm64] + arch: [amd64] exclude: - {os: "ubuntu-latest", arch: "arm64"} @@ -84,9 +84,18 @@ jobs: mkdir -p tofndbin mv /Users/runner/work/tofnd/tofnd/target/aarch64-apple-darwin/release/tofnd "./tofndbin/tofnd-$OS-$ARCH-$SEMVER" else + echo "********" + ls -l /opt/homebrew/Cellar/gmp/6.3.0/lib + file /opt/homebrew/Cellar/gmp/6.3.0/lib/libgmp.10.dylib + echo "********" + export RUSTFLAGS="-L/opt/homebrew/lib" + export LIBRARY_PATH=/opt/homebrew/lib:$LIBRARY_PATH + export LD_LIBRARY_PATH=/opt/homebrew/lib:$LD_LIBRARY_PATH + export C_INCLUDE_PATH=/opt/homebrew/include:$C_INCLUDE_PATH + export CPLUS_INCLUDE_PATH=/opt/homebrew/include:$CPLUS_INCLUDE_PATH export HOMEBREW_NO_INSTALL_CLEANUP=TRUE brew uninstall --ignore-dependencies gmp - ARM_DEPENDENCY=$(brew fetch --force --bottle-tag=x86_64_sonoma gmp | grep Downloaded | awk '{print $3}') + ARM_DEPENDENCY=$(brew fetch --force --bottle-tag=arm64_sonoma gmp | grep Downloaded | awk '{print $3}') brew install "$ARM_DEPENDENCY" cargo install --locked --path . mkdir -p tofndbin