-
Notifications
You must be signed in to change notification settings - Fork 48
52 lines (52 loc) · 1.75 KB
/
upload-binaries.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
44
45
46
47
48
49
50
51
52
name: Upload Binaries
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
name: Build Release Binaries
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: rustup update stable
- run: rustup default stable
- run: cargo build --release --all-features --workspace
- id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- if: matrix.os == 'macos-latest'
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/release/groth16_phase2_client
asset_name: groth16-phase2-client-macos-latest
asset_content_type: application/binary
- if: matrix.os == 'ubuntu-latest'
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/release/groth16_phase2_client
asset_name: groth16-phase2-client-ubuntu-latest
asset_content_type: application/binary
- if: matrix.os == 'windows-latest'
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/release/groth16_phase2_client
asset_name: groth16-phase2-client-windows-latest
asset_content_type: application/binary