forked from starkware-libs/cairo
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (39 loc) · 1.22 KB
/
release.yaml
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
name: release
on:
push:
tags:
- "v*"
jobs:
release:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: x86_64-unknown-linux-musl.tar.gz
asset_name: release-x86_64-unknown-linux-musl.tar.gz
target: x86_64-unknown-linux-musl
- os: macos-latest
artifact_name: aarch64-apple-darwin.tar.gz
asset_name: release-aarch64-apple-darwin.tar
target: aarch64-apple-darwin
steps:
- uses: actions/checkout@v4
- name: Install musl
run: |
if [ "${{ matrix.target }}" == "x86_64-unknown-linux-musl" ]
then
sudo apt-get install -y musl-tools
fi
- name: Build in ${{ matrix.target }}
run: ./scripts/release_tar.sh ${{ matrix.target }}
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
overwrite: true
body: "Cairo compiler."