File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ name: Target Smoke Tests
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ install_deps_args :
7+ description : " Extra args for nihdl install-deps (example: --pre --latest)"
8+ required : false
9+ default : " "
10+ type : string
511 pull_request :
612 paths :
713 - " targets/**"
1925
2026jobs :
2127 nihdl-target-smoke :
22- runs-on : [self-hosted, Windows, X64]
28+ runs-on : windows-latest
2329 timeout-minutes : 360
2430
2531 steps :
@@ -59,11 +65,22 @@ jobs:
5965 run : |
6066 $targets = "${{ steps.discover.outputs.targets }}".Split(',', [System.StringSplitOptions]::RemoveEmptyEntries)
6167 $firstTarget = $targets[0]
68+ $inputArgs = ""
69+
70+ if ("${{ github.event_name }}" -eq "workflow_dispatch") {
71+ $inputArgs = "${{ github.event.inputs.install_deps_args }}"
72+ }
73+
74+ $extraArgs = @()
75+ if ($inputArgs -and $inputArgs.Trim()) {
76+ $extraArgs = $inputArgs.Trim().Split(' ', [System.StringSplitOptions]::RemoveEmptyEntries)
77+ Write-Host "Using extra install-deps args: $($extraArgs -join ' ')"
78+ }
6279
6380 Write-Host "Running install-deps from targets/$firstTarget"
6481 Push-Location (Join-Path "targets" $firstTarget)
6582 try {
66- nihdl install-deps
83+ & nihdl install-deps @extraArgs
6784 }
6885 finally {
6986 Pop-Location
You can’t perform that action at this time.
0 commit comments