Skip to content

Commit

Permalink
add files to /usr/bin in build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaariel91 committed Aug 8, 2024
1 parent d376f16 commit 4c2ff5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
id: create_release
uses: softprops/action-gh-release@v2
with:
files: /tmp/stone-prover/cpu_air*
files: /tmp/stone-prover/usr/bin/cpu_air*

- name: Upload dep to a GitHub release
id: create_release_deb
Expand Down
7 changes: 5 additions & 2 deletions build_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@

set -e

sudo apt-get install -y build-essential devscripts debhelper dh-make

# Create a temporary directory for the package
mkdir -p /tmp/stone-prover/DEBIAN
mkdir -p /tmp/stone-prover/usr/bin

TAG=$1

docker build --tag prover .
container_id=$(docker create prover)
docker cp $container_id:/usr/bin/cpu_air_prover /tmp/stone-prover/cpu_air_prover
docker cp $container_id:/usr/bin/cpu_air_verifier /tmp/stone-prover/cpu_air_verifier
docker cp $container_id:/usr/bin/cpu_air_prover /tmp/stone-prover/usr/bin/cpu_air_prover
docker cp $container_id:/usr/bin/cpu_air_verifier /tmp/stone-prover/usr/bin/cpu_air_verifier
docker rm $container_id

cat <<EOF > /tmp/stone-prover/DEBIAN/control
Expand Down

0 comments on commit 4c2ff5b

Please sign in to comment.