-
Notifications
You must be signed in to change notification settings - Fork 20
53 lines (44 loc) · 1.32 KB
/
release-binary.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
53
name: Release binary to existing tag
on:
workflow_dispatch:
inputs:
# Get name of the chain
chain:
description: Chain (default = tinkernet)
required: true
default: tinkernet
type: choice
options:
- tinkernet
- invarch
jobs:
build_binary:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./${{ github.event.inputs.chain }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Free disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- name: Setup for checks
run: sudo apt install -y git clang curl libssl-dev llvm libudev-dev protobuf-compiler
- name: Install & display rust toolchain
run: rustup show
- name: Build binary
run: cargo build --release
- name: Add binary to release
uses: djnicholson/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag-name: ${{ github.ref_name }}
asset-name: '${{ github.event.inputs.chain }}-collator'
file: './${{ github.event.inputs.chain }}/target/release/${{ github.event.inputs.chain }}-collator'