Skip to content

Update windows.yml

Update windows.yml #14

Workflow file for this run

name: macOS
on:
push:
tags:
- "*"
jobs:
build-macos:
name: macOS
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
brew install boost qt@5
- name: Clone Fuego
run: |
rm -rf cryptonote
git clone https://github.com/usexfg/fuego.git cryptonote
- name: Build
id: build
run: |
export PATH="/usr/local/opt/qt@5/bin:$PATH"
build_folder="build/release"
xfg_ver=$(echo ${{ github.ref }} | sed 's|refs/tags/||')
release_name="fuego-desktop-macOS-v$xfg_ver"
app_name="Fuego-Wallet.app"
make -j4 build-release
cd "$build_folder"
macdeployqt "$app_name"
cpack
mkdir "$release_name"
mv *.dmg "$release_name".dmg
zip "$release_name".zip "$release_name".dmg
sha256=$(shasum -a 256 "$release_name".zip | awk '{ print toupper($1) }')
echo "sha256=${sha256}" >> $GITHUB_OUTPUT
echo "release_name=${release_name}.zip" >> $GITHUB_OUTPUT
echo "asset_path=${build_folder}/${release_name}.zip" >> $GITHUB_OUTPUT
echo "xfg_version=${xfg_version}" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: ${{ steps.build.outputs.asset_path }}
name: Fuego Desktop v${{ steps.build.outputs.xfg_ver }}
body: |
<img src="https://cdn-icons-png.flaticon.com/512/882/882602.png" width="16"> [Download for macOS](../../releases/download/${{ steps.build.outputs.xfg_ver }}/${{ steps.build.outputs.release_name }}) ${{ steps.build.outputs.release_name }}
`SHA256 : ${{ steps.build.outputs.sha256 }}`
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}