Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ jobs:
run: |
set -x
set -e
# To debug the `invalid instruction` crash, we can uncomment this
# code to see the state of the process during the crash.
# IMPORTANT: don't forget to install gdb before uncommenting
#
# cat /proc/cpuinfo
# gdb -q --batch -ex "set disassembly-flavor intel" \
# -ex "run" \
# -ex "bt" \
# -ex "info registers" \
# -ex "x/10i \$pc" \
# --args package/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
time package/bin/prover testdata/circuit_final.zkey testdata/witness.wtns proof.json public.json
time package/bin/verifier testdata/verification_key.json public.json proof.json
# make a wrong public.json by decrementing the first element by 1
Expand Down Expand Up @@ -341,7 +352,7 @@ jobs:
gh release upload ${{ github.event.release.tag_name }} rapidsnark-macOS-arm64-${{ github.ref_name }}.zip

build-apple-x86_64:
runs-on: macos-13
runs-on: macos-15-intel
steps:
- uses: actions/checkout@v4
with:
Expand Down
8 changes: 7 additions & 1 deletion build_gmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,13 @@ build_host()
mkdir "$BUILD_DIR"
cd "$BUILD_DIR"

../configure --prefix="$PACKAGE_DIR" --with-pic --disable-fft &&
# Although the target is named `host`, we still assume that if we build on
# linux x86_64, the binary should work on any linux x86_64. That is why we
# add the --enable-fat flag. Without it, for example, if we cache the build
# artifacts of GMP that were built on one GitHub CI server, we would get a
# crash on another server that does not support instructions from the
# original builder.
../configure --prefix="$PACKAGE_DIR" --with-pic --disable-fft --enable-fat &&
make -j${NPROC} &&
make install

Expand Down