Update windows.yml #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |