forked from lthn/blockchain
Refactor CI workflow job names for clarity and update pull request event types
This commit is contained in:
parent
10e55f6d29
commit
6c2437c2e4
3 changed files with 8 additions and 38 deletions
29
.github/workflows/_on-pr-fast.yml
vendored
29
.github/workflows/_on-pr-fast.yml
vendored
|
|
@ -1,29 +0,0 @@
|
||||||
name: PR Fast
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
on:
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- synchronize
|
|
||||||
- reopened
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
- main
|
|
||||||
- dev-*
|
|
||||||
paths-ignore:
|
|
||||||
- '**.md'
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-macos-arm64:
|
|
||||||
name: Compile
|
|
||||||
uses: ./.github/workflows/build-windows-intel.yml
|
|
||||||
# uses: ./.github/workflows/build-macos-arm64.yml
|
|
||||||
with:
|
|
||||||
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
|
||||||
16
.github/workflows/_on-pr.yml
vendored
16
.github/workflows/_on-pr.yml
vendored
|
|
@ -7,8 +7,9 @@ on:
|
||||||
pull_request_review:
|
pull_request_review:
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- ready_for_review
|
- opened
|
||||||
- review_requested
|
- synchronize
|
||||||
|
- reopened
|
||||||
- closed
|
- closed
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
|
|
@ -39,7 +40,7 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
build-linux-intel:
|
build-linux-intel:
|
||||||
name: Chain
|
name: Linux
|
||||||
if: ${{!github.event.pull_request.draft}}
|
if: ${{!github.event.pull_request.draft}}
|
||||||
uses: ./.github/workflows/build-linux-intel.yml
|
uses: ./.github/workflows/build-linux-intel.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
@ -47,7 +48,7 @@ jobs:
|
||||||
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
||||||
|
|
||||||
build-linux-arm:
|
build-linux-arm:
|
||||||
name: Chain
|
name: Linux
|
||||||
if: ${{!github.event.pull_request.draft}}
|
if: ${{!github.event.pull_request.draft}}
|
||||||
uses: ./.github/workflows/build-linux-arm64.yml
|
uses: ./.github/workflows/build-linux-arm64.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
@ -55,7 +56,7 @@ jobs:
|
||||||
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
||||||
|
|
||||||
build-windows-intel:
|
build-windows-intel:
|
||||||
name: Chain
|
name: Windows
|
||||||
if: ${{!github.event.pull_request.draft}}
|
if: ${{!github.event.pull_request.draft}}
|
||||||
uses: ./.github/workflows/build-windows-intel.yml
|
uses: ./.github/workflows/build-windows-intel.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
@ -63,15 +64,14 @@ jobs:
|
||||||
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
||||||
|
|
||||||
build-macos-arm64:
|
build-macos-arm64:
|
||||||
name: Chain
|
name: MacOS
|
||||||
if: ${{!github.event.pull_request.draft}}
|
|
||||||
uses: ./.github/workflows/build-macos-arm64.yml
|
uses: ./.github/workflows/build-macos-arm64.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
chain-network: ${{ github.ref_name == 'main' && 'mainnet' || 'testnet' }}
|
||||||
|
|
||||||
build-macos-intel:
|
build-macos-intel:
|
||||||
name: Chain
|
name: MacOS
|
||||||
if: ${{!github.event.pull_request.draft}}
|
if: ${{!github.event.pull_request.draft}}
|
||||||
uses: ./.github/workflows/build-macos-intel.yml
|
uses: ./.github/workflows/build-macos-intel.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
|
||||||
1
.github/workflows/_on-push.yml
vendored
1
.github/workflows/_on-push.yml
vendored
|
|
@ -9,7 +9,6 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- 'dev'
|
- 'dev'
|
||||||
- 'main'
|
- 'main'
|
||||||
- 'dev-*'
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue