-
Notifications
You must be signed in to change notification settings - Fork 29
43 lines (36 loc) · 1.11 KB
/
mac-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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*