Skip to content

Update checkpoints

Update checkpoints #12

Workflow file for this run

name: macOS
on:
push:
tags:
- "*"
jobs:
build-macos:
name: macOS
runs-on: macos-12
steps:
- uses: actions/checkout@master
- name: Build
id: build
run: |
build_folder="build/"
ccx_version=$(echo ${{ github.ref }} | sed 's|refs/tags/||')
release_name="ccx-cli-macOS-v$ccx_version"
brew install gcc boost
mkdir "$build_folder"
cd "$build_folder"
cmake -DCMAKE_C_FLAGS="-mmacosx-version-min=10.12" -DCMAKE_CXX_FLAGS="-mmacosx-version-min=10.12" -DCMAKE_BUILD_TYPE=Release -DSTATIC=ON ..
make -j2
mkdir "$release_name"
exeFiles=()
for f in src/*; do [[ -x $f && -f $f ]] && strip "$f" && exeFiles+=( "$f" ); done
cp "${exeFiles[@]}" "$release_name/"
zip -r "$release_name".zip "$release_name"
sha256=$(shasum -a 256 "$release_name".zip | awk '{print toupper($1)}')
asset_path="./$build_folder$release_name.zip"
echo "sha256=${sha256}" >> $GITHUB_OUTPUT
echo "release_name=${release_name}.zip" >> $GITHUB_OUTPUT
echo "asset_path=${asset_path}" >> $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 Core CLI 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 }}