forked from lthn/blockchain
Split build jobs by architecture and OS in GitHub Actions workflows, add Docker and docs build jobs, and update artifact upload to create GitHub releases. Also update CPackConfig.cmake to use BUILD_VERSION for package versioning.
64 lines
2 KiB
YAML
64 lines
2 KiB
YAML
name: PR
|
|
permissions:
|
|
contents: read
|
|
on:
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
pull_request_review:
|
|
pull_request:
|
|
types:
|
|
- review_requested
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-linux-intel:
|
|
name: Chain
|
|
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
|
uses: ./.github/workflows/build-linux-intel.yml
|
|
with:
|
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
|
|
build-linux-arm:
|
|
name: Chain
|
|
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
|
uses: ./.github/workflows/build-linux-arm64.yml
|
|
with:
|
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
|
|
build-windows-intel:
|
|
name: Chain
|
|
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
|
uses: ./.github/workflows/build-windows-intel.yml
|
|
with:
|
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
|
|
build-macos-arm64:
|
|
name: Chain
|
|
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
|
uses: ./.github/workflows/build-macos-arm64.yml
|
|
with:
|
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
|
|
build-macos-intel:
|
|
name: Chain
|
|
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
|
uses: ./.github/workflows/build-macos-intel.yml
|
|
with:
|
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
|
|
build-docker:
|
|
name: Docker
|
|
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
|
uses: ./.github/workflows/build-docker.yml
|
|
with:
|
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
secrets: inherit
|
|
|
|
build-docs:
|
|
|
|
if: github.event.review.state == 'approved' && !github.event.pull_request.draft
|
|
name: Docs
|
|
uses: ./.github/workflows/build-docs.yml
|