forked from ConcealNetwork/conceal-desktop
-
Notifications
You must be signed in to change notification settings - Fork 3
54 lines (46 loc) · 1.88 KB
/
ubuntu20.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
54
name: Ubuntu 20.04
on:
push:
tags:
- "*"
jobs:
build-ubuntu20:
name: Ubuntu 20.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update -y
sudo apt install -y qt5-default qttools5-dev qttools5-dev-tools libqt5charts5-dev libboost-all-dev
- name: Clone fuego
run: |
rm -rf cryptonote
git clone https://github.com/usexfg/fuego.git cryptonote
- name: Build
id: build
run: |
xfg_version=$(echo "$GITHUB_REF" | sed 's|refs/tags/||')
release_name=fuego-desktop-ubuntu-2004-v"$xfg_version"
build_folder="build/release"
make -j4 build-release
mkdir $release_name
mkdir -p $release_name/icon
mv build/release/Fuego-Wallet $release_name
cp fuego-desktop.desktop $release_name
cp src/images/fuego.png $release_name/icon
tar -czf "$release_name".tar.gz "$release_name"
sha256=$(shasum -a 256 "$release_name".tar.gz | awk '{print toupper($1)}')
echo "sha256=${sha256}" >> $GITHUB_OUTPUT
echo "release_name=${release_name}.tar.gz" >> $GITHUB_OUTPUT
echo "xfg_version=${xfg_version}" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: ${{ steps.build.outputs.release_name }}
name: Fuego Desktop v${{ steps.build.outputs.xfg_version }}
body: |
<img src="https://cdn-icons-png.flaticon.com/512/888/888879.png" width="16"> [Download for Ubuntu 20.04](../../releases/download/${{ steps.build.outputs.xfg_version }}/${{ steps.build.outputs.release_name }}) ${{ steps.build.outputs.release_name }}
`SHA256 : ${{ steps.build.outputs.sha256 }}`
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}