feat: add run-id input to circuits build workflow

- Add optional run-id input parameter to workflow_dispatch
- Allow downloading artifacts from specific workflow runs
- Improves build efficiency by reusing existing artifacts
- Solves 'Artifact not found' errors when building specific circuits
This commit is contained in:
vishal
2025-10-08 17:01:00 +05:30
parent bb458ea8f8
commit 98b6149838

View File

@@ -20,6 +20,11 @@ on:
required: false
type: string
default: ''
run-id:
description: 'Run ID to download artifacts from (optional). If provided, will download artifacts from that specific run instead of the latest.'
required: false
type: string
default: ''
concurrency:
group: circuits-build-${{ github.workflow }}-${{ github.ref }}
@@ -156,6 +161,8 @@ jobs:
with:
name: circuits
path: output/
# If run-id is provided, download from that specific run, otherwise use latest
run-id: ${{ inputs.run-id != '' && inputs.run-id || '' }}
continue-on-error: true
- name: Build cpp circuits