Skip to content

ci: gate native AOT smoke test via shared reusable workflow - #2244

Merged
glennawatson merged 2 commits into
mainfrom
build/aot-smoke-publish-gate
Jul 15, 2026
Merged

glennawatson merged 2 commits into
mainfrom
build/aot-smoke-publish-gate

Conversation

@glennawatson

@glennawatson glennawatson commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

What this does

Adds a Native AOT smoke gate to CI, wired the same way as every other refit workflow - by calling a shared reusable workflow in reactiveui/actions-common rather than a bespoke local job.

  • New refit workflow native-aot.yml calls reactiveui/actions-common/.github/workflows/workflow-common-aot-smoke.yml.
  • The reusable workflow runs dotnet publish -r <rid> on src/Refit.NativeAotSmoke and runs the produced native binary as the pass/fail gate, across a cross-platform matrix: win-x64, linux-x64, osx-arm64.
  • It reuses the standard dotnet-environment composite for SDK setup, so every target framework's SDK (including net11) is installed - fixing the net11 targeting error the earlier single-RID attempt hit - and installs clang/zlib on Linux so the ILC native link has its toolchain.

Why

A plain build already runs the trim/AOT analyzers, but only a real native publish exercises the ILC compile/link and proves the binary runs. Keeping it in actions-common means every rxui repo can opt in with one uses: line.

Closes #2230

- add native-aot-smoke job running dotnet publish -r linux-x64 of the smoke project
- run the produced native binary so the ILC link and its exit code gate the job
- keep the gate local; the shared build workflow has no publish hook
@codecov

codecov Bot commented Jul 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (393b245) to head (891c694).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #2244   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          183       183           
  Lines         9553      9553           
  Branches      1796      1796           
=========================================
  Hits          9553      9553           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- add native-aot.yml calling actions-common workflow-common-aot-smoke.yml across win-x64/linux-x64/osx-arm64
- drop the earlier bespoke single-RID job; the shared workflow reuses the standard dotnet-environment SDK setup so every target framework (incl. net11) is installed and the ILC link has clang/zlib on Linux
@glennawatson glennawatson changed the title ci: gate native AOT smoke test with a real publish ci: gate native AOT smoke test via shared reusable workflow Jul 15, 2026
@glennawatson
glennawatson merged commit 44f81de into main Jul 15, 2026
12 checks passed
@glennawatson
glennawatson deleted the build/aot-smoke-publish-gate branch July 15, 2026 10:54
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: gate the Native AOT smoke test in CI with a real dotnet publish -r

1 participant