Skip to content

Fix TRAGET_ARCH

Fix TRAGET_ARCH #2

Workflow file for this run

name: release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-14]
arch: [x64, arm64]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up environment
run: |
echo "Setting up environment for ${{ matrix.arch }}"
if [ "${{ matrix.arch }}" == "x64" ]; then
echo "TARGET_ARCH=x86_64" >> $GITHUB_ENV
elif [ "${{ matrix.arch }}" == "arm64" ]; then
echo "TARGET_ARCH=arm64" >> $GITHUB_ENV
fi
- name: Build binary
run: |
chmod +x ./build_mac.sh
./build_mac.sh
- name: Rename binaries
run: |
echo "Renaming binaries to include architecture"
mv /tmp/stone-prover/build/bazelbin/src/starkware/main/cpu/cpu_air_prover ./cpu_air_prover-macOS-${TARGET_ARCH}
mv /tmp/stone-prover/build/bazelbin/src/starkware/main/cpu/cpu_air_verifier ./cpu_air_verifier-macOS-${TARGET_ARCH}
- name: Upload files to a GitHub release
uses: softprops/action-gh-release@v2
with:
files: ./cpu_air*