From 6433cfb1fac829d4aea01fc7862c0029169ce77d Mon Sep 17 00:00:00 2001 From: Scott Hanselman Date: Mon, 6 Jul 2026 20:35:35 -0700 Subject: [PATCH] Add DevBuild identity CI marker check Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9083d1f9..47c846885 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -306,6 +306,25 @@ jobs: "All pages passed Axe.Windows accessibility validation." >> $env:GITHUB_STEP_SUMMARY } + - name: Verify DevBuild identity marker + shell: pwsh + run: | + dotnet build src/OpenClaw.Tray.WinUI -c Debug -r win-x64 -p:DevBuild=true --no-restore + $marker = Get-ChildItem -Path src\OpenClaw.Tray.WinUI\bin\Debug -Recurse -Filter app-identity.txt | + Where-Object { $_.FullName -like '*\win-x64\app-identity.txt' } | + Sort-Object LastWriteTimeUtc -Descending | + Select-Object -First 1 + if ($null -eq $marker) { + throw "Dev identity marker was not produced by the DevBuild." + } + + $identity = (Get-Content -LiteralPath $marker.FullName -Raw).Trim() + if ($identity -ne "dev") { + throw "Expected DevBuild identity marker 'dev' but found '$identity' at $($marker.FullName)." + } + + Write-Host "DevBuild identity marker verified at $($marker.FullName): $identity" + - name: Upload Test Results if: always() uses: actions/upload-artifact@v7