From 4c2ff5b26e57a18c5cdfb401c7bec289c7d9c204 Mon Sep 17 00:00:00 2001 From: Nikola Date: Thu, 8 Aug 2024 17:04:50 +0200 Subject: [PATCH] add files to /usr/bin in build.sh --- .github/workflows/release.yml | 2 +- build_deb.sh | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4504bf5b..5bc65471 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/build_deb.sh b/build_deb.sh index 25841982..d7c363f1 100755 --- a/build_deb.sh +++ b/build_deb.sh @@ -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 < /tmp/stone-prover/DEBIAN/control