Skip to content

Commit 6433cfb

Browse files
shanselmanCopilot
andcommitted
Add DevBuild identity CI marker check
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent b3a2b4e commit 6433cfb

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,25 @@ jobs:
306306
"All pages passed Axe.Windows accessibility validation." >> $env:GITHUB_STEP_SUMMARY
307307
}
308308
309+
- name: Verify DevBuild identity marker
310+
shell: pwsh
311+
run: |
312+
dotnet build src/OpenClaw.Tray.WinUI -c Debug -r win-x64 -p:DevBuild=true --no-restore
313+
$marker = Get-ChildItem -Path src\OpenClaw.Tray.WinUI\bin\Debug -Recurse -Filter app-identity.txt |
314+
Where-Object { $_.FullName -like '*\win-x64\app-identity.txt' } |
315+
Sort-Object LastWriteTimeUtc -Descending |
316+
Select-Object -First 1
317+
if ($null -eq $marker) {
318+
throw "Dev identity marker was not produced by the DevBuild."
319+
}
320+
321+
$identity = (Get-Content -LiteralPath $marker.FullName -Raw).Trim()
322+
if ($identity -ne "dev") {
323+
throw "Expected DevBuild identity marker 'dev' but found '$identity' at $($marker.FullName)."
324+
}
325+
326+
Write-Host "DevBuild identity marker verified at $($marker.FullName): $identity"
327+
309328
- name: Upload Test Results
310329
if: always()
311330
uses: actions/upload-artifact@v7

0 commit comments

Comments
 (0)