Merge pull request #197 from ConcealNetwork/development #27
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: macOS | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build-macos: | |
name: macOS | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@master | |
- name: Install dependencies | |
run: | | |
brew install boost qt@5 | |
- name: Clone conceal-core | |
run: | | |
rm -rf cryptonote | |
git clone https://github.com/ConcealNetwork/conceal-core.git cryptonote | |
- name: Build | |
id: build | |
run: | | |
export PATH="/usr/local/opt/qt@5/bin:$PATH" | |
build_folder="build/release" | |
ccx_version=$(echo ${{ github.ref }} | sed 's|refs/tags/||') | |
release_name="ccx-desktop-macOS-v$ccx_version" | |
app_name="conceal-desktop.app" | |
lrelease src/languages/*.ts | |
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 "ccx_version=${ccx_version}" >> $GITHUB_OUTPUT | |
- name: Create Release | |
uses: softprops/[email protected] | |
with: | |
files: ${{ steps.build.outputs.asset_path }} | |
name: Conceal Desktop v${{ steps.build.outputs.ccx_version }} | |
body: | | |
[Download for macOS](../../releases/download/${{ steps.build.outputs.ccx_version }}/${{ steps.build.outputs.release_name }}) **${{ steps.build.outputs.release_name }}** | |
`SHA256 : ${{ steps.build.outputs.sha256 }}` | |
append_body: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |