Skip to content

Commit 1f7d49b

Browse files
authored
Merge pull request #29 from ni/users/ssantolu/dev
run on win
2 parents 3d5ad5a + 8a11aec commit 1f7d49b

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/target-smoke-tests.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Target Smoke Tests
22

33
on:
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/**"
@@ -19,7 +25,7 @@ on:
1925

2026
jobs:
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

0 commit comments

Comments
 (0)