1
0
Fork 0
forked from lthn/blockchain
blockchain/.github/workflows/_on-pr.yml
Snider 90417401ab Refactor CI workflows and update CPack config
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.
2025-09-29 20:45:11 +01:00

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