forked from lthn/blockchain
Introduced separate build workflows for Linux and Windows ARM64 architectures. Renamed existing Intel build workflows for clarity and updated the main workflow to trigger both Intel and ARM64 builds for Linux and Windows. Improved caching by including architecture in cache keys and set CPU_CORES for release builds across all platforms.
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
name: Push Compile
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
on:
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- 'dev'
|
|
- 'dev-*'
|
|
- 'main'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-linux-intel:
|
|
name: Chain
|
|
uses: ./.github/workflows/build-linux-intel.yml
|
|
with:
|
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
|
|
build-linux-arm:
|
|
name: Chain
|
|
uses: ./.github/workflows/build-linux-arm64.yml
|
|
with:
|
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
|
|
build-windows-intel:
|
|
name: Chain
|
|
uses: ./.github/workflows/build-windows-intel.yml
|
|
with:
|
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
|
|
build-windows-arm:
|
|
name: Chain
|
|
uses: ./.github/workflows/build-windows-arm64.yml
|
|
with:
|
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
|
|
build-macos-arm64:
|
|
name: Chain
|
|
uses: ./.github/workflows/build-macos-arm64.yml
|
|
with:
|
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
|
|
build-macos-intel:
|
|
name: Chain
|
|
uses: ./.github/workflows/build-macos-intel.yml
|
|
with:
|
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
|
|
build-docker:
|
|
name: Docker
|
|
uses: ./.github/workflows/build-docker.yml
|
|
with:
|
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
secrets: inherit
|
|
|
|
build-docs:
|
|
name: Docs
|
|
uses: ./.github/workflows/build-docs.yml
|