Skip to content

Commit

Permalink
wip: amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
sdaveas committed Jun 4, 2024
1 parent 4b36278 commit 60c0a47
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build-docker-image-and-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 60c0a47

Please sign in to comment.