1
0
Fork 0
forked from lthn/blockchain
blockchain/.github/workflows/build-linux.yml
Snider 3d7e7166f2 Add TESTNET flag to build workflows and Makefile
Introduces a TESTNET variable to the Makefile and passes it from GitHub Actions workflows based on the chain-network input. Updates CMake build commands to include the TESTNET flag, improves help output formatting, and comments out unused genesis targets for clarity.
2025-09-25 17:54:52 +01:00

44 lines
1.2 KiB
YAML

name: build-linux
permissions:
contents: read
on:
workflow_call:
inputs:
chain-network:
description: "The network to use, can either be testnet, stagenet or mainnet"
default: testnet
required: false
type: string
jobs:
build:
name: gcc-linux-amd64-release
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 git build-essential
- 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 TESTNET=${{ inputs.chain-network == 'testnet' && '1' || '0' }}
- name: CLI Artifacts
uses: ./.github/actions/upload-artifacts
with:
chain-network: ${{ inputs.chain-network }}
assets: |
zanod
simplewallet
asset-type: 'cli'
asset-directory: ${{ github.workspace }}/build/gcc-linux-amd64-release/src