Skip to content

Commit

Permalink
fix arm64 binaries and Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaariel91 committed Aug 20, 2024
1 parent dfc2798 commit 574e932
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
chmod +x ./package_deb.sh
./package_deb.sh ${{ steps.vars.outputs.tag }}
- name: Extract files and build RPM package
if: matrix.os == 'fedora-40'
run: |
chmod +x ./package_rpm.sh
./package_rpm.sh ${{ steps.vars.outputs.tag }}
- name: Rename binaries ubuntu
if: matrix.os == 'ubuntu-22.04'
run: |
Expand All @@ -74,3 +80,4 @@ jobs:
files: |
./cpu_air*
/tmp/stone-prover/*.deb
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Base Image
FROM ubuntu:22.04 AS build
FROM --platform=$BUILDPLATFORM ubuntu:22.04 AS build

RUN apt-get update && apt-get install -y git

Expand Down Expand Up @@ -56,4 +56,4 @@ COPY --from=build /app/build/bazelbin/src/starkware/main/cpu/cpu_air_prover /usr
COPY --from=build /app/build/bazelbin/src/starkware/main/cpu/cpu_air_verifier /usr/bin/

# Install the necessary runtime dependencies
RUN apt update && apt install -y libdw1
RUN apt update && apt install -y libdw1
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ git clone https://github.com/baking-bad/stone-prover.git /tmp/stone-prover

cd /tmp/stone-prover || exit

bazelisk build //...
bazelisk build --cpu=$arch //...

bazelisk test //...
bazelisk test --cpu=$arch //...

# Create symbolic links for cpu_air_prover and cpu_air_verifier
ln -s /tmp/stone-prover/build/bazelbin/src/starkware/main/cpu/cpu_air_prover /usr/local/bin/cpu_air_prover
Expand Down

0 comments on commit 574e932

Please sign in to comment.