-
Notifications
You must be signed in to change notification settings - Fork 50
98 lines (94 loc) · 3.46 KB
/
Copy pathrelease.yml
File metadata and controls
98 lines (94 loc) · 3.46 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: GitHub Release
permissions:
contents: write
discussions: write
on:
push:
tags:
- v[0-9]+.*
jobs:
create-release:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: taiki-e/create-gh-release-action@eba8ea96c86cca8a37f1b56e94b4d13301fba651 # v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
upload-assets:
needs: create-release
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-24.04
dep_base_dir: /usr/lib/llvm-19
- target: x86_64-apple-darwin
os: macos-14
dep_base_dir: /opt/homebrew/opt/llvm@19
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
submodules: true
- name: Set env
run: |
echo "MLIR_SYS_190_PREFIX=${{ matrix.dep_base_dir }}" >> $GITHUB_ENV
echo "LLVM_SYS_191_PREFIX=${{ matrix.dep_base_dir }}" >> $GITHUB_ENV
echo "TABLEGEN_190_PREFIX=${{ matrix.dep_base_dir }}" >> $GITHUB_ENV
- name: Install deps
run: make deps && make deps-ci-linux
- uses: taiki-e/upload-rust-binary-action@f0d45ae91ee7b8ee928de7a9d04d893a08bcbec6 # v1
with:
bin: cairo-native-compile
manifest_path: binaries/cairo-native-compile/Cargo.toml
target: ${{ matrix.target }}
tar: unix
zip: windows
archive: cairo-native-compile-$target
token: ${{ secrets.GITHUB_TOKEN }}
- uses: taiki-e/upload-rust-binary-action@f0d45ae91ee7b8ee928de7a9d04d893a08bcbec6 # v1
with:
bin: cairo-native-dump
manifest_path: binaries/cairo-native-dump/Cargo.toml
target: ${{ matrix.target }}
tar: unix
zip: windows
archive: cairo-native-dump-$target
token: ${{ secrets.GITHUB_TOKEN }}
- uses: taiki-e/upload-rust-binary-action@f0d45ae91ee7b8ee928de7a9d04d893a08bcbec6 # v1
with:
bin: cairo-native-run
manifest_path: binaries/cairo-native-run/Cargo.toml
target: ${{ matrix.target }}
tar: unix
zip: windows
archive: cairo-native-run-$target
token: ${{ secrets.GITHUB_TOKEN }}
- uses: taiki-e/upload-rust-binary-action@f0d45ae91ee7b8ee928de7a9d04d893a08bcbec6 # v1
with:
bin: cairo-native-stress
manifest_path: debug_utils/cairo-native-stress/Cargo.toml
target: ${{ matrix.target }}
tar: unix
zip: windows
archive: cairo-native-stress-$target
token: ${{ secrets.GITHUB_TOKEN }}
- uses: taiki-e/upload-rust-binary-action@f0d45ae91ee7b8ee928de7a9d04d893a08bcbec6 # v1
with:
bin: cairo-native-test
manifest_path: binaries/cairo-native-test/Cargo.toml
target: ${{ matrix.target }}
tar: unix
zip: windows
archive: cairo-native-test-$target
token: ${{ secrets.GITHUB_TOKEN }}
- uses: taiki-e/upload-rust-binary-action@f0d45ae91ee7b8ee928de7a9d04d893a08bcbec6 # v1
with:
bin: starknet-native-compile
manifest_path: binaries/starknet-native-compile/Cargo.toml
target: ${{ matrix.target }}
tar: unix
zip: windows
archive: starknet-native-compile-$target
token: ${{ secrets.GITHUB_TOKEN }}