1
0
Fork 0
forked from lthn/blockchain
blockchain/.github/workflows/build-macos-arm64.yml
2025-09-24 21:01:35 +01:00

67 lines
No EOL
1.7 KiB
YAML

name: build-macos-arm64
permissions:
contents: write
on:
workflow_call:
inputs:
chain-network:
description: "The network to use, can either be testnet, stagenet or mainnet"
default: testnet
required: false
type: string
build-cli:
description: "Should the CLI be built"
default: true
required: false
type: boolean
build-gui:
description: "Should the GUI be built"
default: true
required: false
type: boolean
release:
description: "Make a release"
default: true
required: false
type: boolean
release-tag:
required: false
type: string
description: 'The tag for the release'
jobs:
build-cli:
name: MacOS Arm64
runs-on: macos-15
steps:
- name: Checkout Project
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
submodules: recursive
- name: install dependencies
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache miniupnpc
- name: Install Conan
uses: conan-io/setup-conan@v1
with:
home: ${{ github.workspace }}/build/sdk
cache_packages: true
- name: Compile Release
run: make mac_arm
- name: CLI Artifacts
if: ${{ inputs.build-cli }}
uses: ./.github/actions/sign-and-upload-release
with:
chain-network: ${{ inputs.chain-network }}
release-tag: ${{ github.ref_name }}
release: "${{ inputs.release }}"
assets: |
zanod
simplewallet
connectivity_tool
asset-type: 'cli'
asset-directory: ${{ github.workspace }}/build/mac_arm/src