forked from lthn/blockchain
63 lines
1.6 KiB
YAML
63 lines
1.6 KiB
YAML
name: build-windows
|
|
|
|
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: Windows
|
|
runs-on: windows-2022
|
|
steps:
|
|
- name: Checkout Project
|
|
uses: actions/checkout@v4.2.2
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: Eat the Choco
|
|
run: |
|
|
choco install ccache -y
|
|
choco install zip -y
|
|
- name: Install Conan
|
|
uses: conan-io/setup-conan@v1
|
|
with:
|
|
home: ${{ github.workspace }}/build/sdk
|
|
cache_packages: true
|
|
|
|
- name: Compile Release
|
|
run: make win_x86_64_msvc
|
|
|
|
- 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.exe
|
|
simplewallet.exe
|
|
connectivity_tool.exe
|
|
asset-type: 'cli'
|
|
asset-directory: ${{ github.workspace }}/build/win_x86_64_msvc/src/Release
|