Skip to content

Commit

Permalink
Add linux/arm to release
Browse files Browse the repository at this point in the history
  • Loading branch information
dmirgaleev committed Aug 17, 2024
1 parent b3eceeb commit c0bbc9e
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
build:
name: Docker images for ghcr.io
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
arch: [linux/amd64, linux/arm64]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
DOCKER_REGISTRY: ghcr.io
Expand All @@ -17,6 +21,15 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up environment
run: |
echo "Setting up environment for ${{ matrix.arch }}"
if [ "${{ matrix.arch }}" == "linux/amd64" ]; then
echo "TARGET_ARCH=x86_64" >> $GITHUB_ENV
elif [ "${{ matrix.arch }}" == "linux/arm64" ]; then
echo "TARGET_ARCH=arm64" >> $GITHUB_ENV
fi
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -40,11 +53,17 @@ jobs:
- name: Verify file existence#2
run: ls -la /tmp/stone-prover

- name: Rename binaries and deb
run: |
echo "Renaming binaries to include architecture"
mv /tmp/stone-prover/usr/bin/cpu_air_prover ./cpu_air_prover-linux-${TARGET_ARCH}
mv /tmp/stone-prover/usr/bin/cpu_air_verifier ./cpu_air_verifier-linux-${TARGET_ARCH}
mv /tmp/stone-prover/stone-prover.deb /tmp/stone-prover/stone-prover-linux-${TARGET_ARCH}.deb
- name: Upload files to a GitHub release
id: create_release
uses: softprops/action-gh-release@v2
with:
files: /tmp/stone-prover/usr/bin/cpu_air*
files: ./cpu_air*

- name: Upload dep to a GitHub release
id: create_release_deb
Expand Down

0 comments on commit c0bbc9e

Please sign in to comment.