mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
CI: Auto label on RTLMeter and Code coverage failure
This commit is contained in:
@@ -36,8 +36,8 @@ concurrency:
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Build
|
||||
start:
|
||||
name: Start
|
||||
# Only run scheduled jobs if explicitly enabled for that repo (e.g.: not on forks)
|
||||
# Only run pull request jobs if labelled as needing a coverage run
|
||||
# Always run workflow dispatch jobs
|
||||
@@ -51,6 +51,23 @@ jobs:
|
||||
&& github.event.action != 'unlabeled'
|
||||
&& contains(github.event.pull_request.labels.*.name, 'pr: dev-coverage')))) ||
|
||||
(github.event_name == 'workflow_dispatch')
|
||||
runs-on: ubuntu-slim
|
||||
steps:
|
||||
- name: Save the pull request number
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
run: echo "${{ github.event.number }}" > pr-number.txt
|
||||
|
||||
- name: Upload the pull request number
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
|
||||
with:
|
||||
name: pr-number
|
||||
path: pr-number.txt
|
||||
overwrite: true
|
||||
|
||||
build:
|
||||
name: Build
|
||||
needs: start
|
||||
uses: ./.github/workflows/reusable-build.yml
|
||||
with:
|
||||
cc: gcc
|
||||
|
||||
Reference in New Issue
Block a user