Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 5 additions & 26 deletions .github/workflows/target-smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Configure Git long paths and short workspace path
shell: pwsh
run: |
git config --global core.longpaths true

if (Test-Path "X:\") {
subst X: /d
}

subst X: $env:GITHUB_WORKSPACE
"SHORT_WORKSPACE=X:\" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
Write-Host "Mapped $env:GITHUB_WORKSPACE to X:\\"

- name: Setup Python
uses: actions/setup-python@v5
with:
Expand All @@ -54,15 +41,15 @@ jobs:
- name: Install Python dependencies
shell: pwsh
run: |
Set-Location $env:SHORT_WORKSPACE
Set-Location $env:GITHUB_WORKSPACE
python -m pip install --upgrade pip
python -m pip install -r requirements.txt

- name: Discover target folders
id: discover
shell: pwsh
run: |
Set-Location $env:SHORT_WORKSPACE
Set-Location $env:GITHUB_WORKSPACE
$targets = Get-ChildItem targets -Directory |
Where-Object { Test-Path (Join-Path $_.FullName "projectsettings.ini") } |
Sort-Object Name |
Expand All @@ -78,7 +65,7 @@ jobs:
- name: Run install-deps once
shell: pwsh
run: |
Set-Location $env:SHORT_WORKSPACE
Set-Location $env:GITHUB_WORKSPACE
$targets = "${{ steps.discover.outputs.targets }}".Split(',', [System.StringSplitOptions]::RemoveEmptyEntries)
$firstTarget = $targets[0]
$inputArgs = ""
Expand All @@ -105,26 +92,18 @@ jobs:
- name: Run per-target gen-target and create-project
shell: pwsh
run: |
Set-Location $env:SHORT_WORKSPACE
Set-Location $env:GITHUB_WORKSPACE
$targets = "${{ steps.discover.outputs.targets }}".Split(',', [System.StringSplitOptions]::RemoveEmptyEntries)

foreach ($target in $targets) {
Write-Host "::group::$target"
Push-Location (Join-Path "targets" $target)
try {
nihdl gen-target
nihdl create-project
nihdl create-project --test
}
finally {
Pop-Location
Write-Host "::endgroup::"
}
}

- name: Cleanup mapped drive
if: always()
shell: pwsh
run: |
if (Test-Path "X:\") {
subst X: /d
}
Loading
Loading