forked from wemixarchive/go-wemix
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (36 loc) · 1.29 KB
/
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
44
45
46
47
48
name: "Release a tag as draft"
on:
push:
tags:
- w*
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.19'
- name: Install required packages
run: sudo apt-get install -y libc6 libsnappy-dev libjemalloc-dev libzstd-dev
- name: Build Go-WEMIX tarball (rocksdb)
run: USE_ROCKSDB=YES make gwemix.tar.gz
- name: Display ELF info (rocksdb)
run: readelf -dV build/bin/gwemix
- name: Move results to artifact (rocksdb)
run: mv build/gwemix.tar.gz gwemix-${{ github.ref_name }}-linux-amd64-rocksdb.tar.gz
- name: Build Go-WEMIX tarball (leveldb)
run: USE_ROCKSDB=NO make gwemix.tar.gz
- name: Display ELF info (leveldb)
run: readelf -dV build/bin/gwemix
- name: Move results to artifact (leveldb)
run: mv build/gwemix.tar.gz gwemix-${{ github.ref_name }}-linux-amd64-leveldb.tar.gz
- name: GH Release
uses: softprops/[email protected]
with:
name: WEMIX3.0 Mainnet and Testnet Build (${{ github.ref_name }})
draft: true
files: |
gwemix-${{ github.ref_name }}-linux-amd64-rocksdb.tar.gz
gwemix-${{ github.ref_name }}-linux-amd64-leveldb.tar.gz