1
0
Fork 0
forked from lthn/blockchain
blockchain/.github/workflows/build-linux.yml
Snider b84b99287d Refactor build profiles and update CI workflows
Renamed and reorganized CMake build profiles for consistency, removing unused Android, iOS, and MinGW profiles. Updated GitHub Actions workflows and Makefile to use new profile names and increased build parallelism for faster builds.
2025-09-24 22:21:32 +01:00

61 lines
1.6 KiB
YAML

name: build-linux
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
jobs:
build:
name: Linux
runs-on: ubuntu-22.04
steps:
- name: Checkout Project
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
submodules: recursive
- name: install dependencies
run: sudo apt-get install -y autotools-dev libicu-dev libbz2-dev git screen checkinstall zlib1g-dev 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 gcc-linux-amd64-release
- 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
asset-type: 'cli'
asset-directory: ${{ github.workspace }}/build/gcc-linux-amd64-release/src