1
0
Fork 0
forked from lthn/blockchain
blockchain/.github/workflows/testnet-cli-linux.yml

74 lines
2.2 KiB
YAML

name: testnet-cli-linux
on:
release:
types:
- published
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
pull_request:
branches:
- dev
paths-ignore:
- '**.md'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-project:
name: Build Project
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: ccache caching
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/build/ccache
key: ccache-testnet-cli-${{ runner.os }}
- name: Install boost
uses: MarkusJx/install-boost@6d8df42f57de83c5b326b5b83e7b35d650030103
id: install-boost
with:
boost_version: 1.84.0
boost_install_dir: ${{ github.workspace }}/build/boost_1_84_0
platform_version: 22.04
toolset: gcc
arch: x86
- name: Build Project
uses: threeal/cmake-action@v2.1.0
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}
CCACHE_TEMPDIR: ${{ github.workspace }}/build/ccache
with:
build-dir: build/release
build-args: |
-j2
--config Release
options: |
STATIC=TRUE
TESTNET=TRUE
ARCH=x86-64
CMAKE_BUILD_TYPE=Release
Boost_INCLUDE_DIR=${{steps.install-boost.outputs.BOOST_ROOT}}/include
Boost_LIBRARY_DIRS=${{steps.install-boost.outputs.BOOST_ROOT}}/lib
- name: Upload Binaries
uses: actions/upload-artifact@v4
with:
name: testnet-cli-linux
path: |
${{ github.workspace }}/build/release/src/zanod
${{ github.workspace }}/build/release/src/simplewallet
${{ github.workspace }}/build/release/src/connectivity_tool