1
0
Fork 0
forked from lthn/blockchain
blockchain/.github/workflows/build-linux.yml
Snider 36c38ab9c8 Update build system and version to 6.0.0
Refactored GitHub Actions workflows to upload specific package formats for each platform and standardized the release build process. Updated CMake and Makefile to support a configurable build version, now set to 6.0.0. Adjusted config and version headers to reflect the new versioning scheme and improved package configuration.
2025-09-28 16:33:18 +01:00

46 lines
1.2 KiB
YAML

name: 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-x86_64
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 release TESTNET=${{ inputs.chain-network == 'testnet' && '1' || '0' }}
- uses: actions/upload-artifact@v4
with:
path: ${{ github.workspace }}/build/release/packages/lethean-*.deb
- uses: actions/upload-artifact@v4
with:
path: ${{ github.workspace }}/build/release/packages/lethean-*.tar.xz
- uses: actions/upload-artifact@v4
with:
path: ${{ github.workspace }}/build/release/packages/lethean-*.zip