Skip to content

feat: skip recompilation on cached test apps + bundle in CI release - #70

Merged
JusterZhu merged 1 commit into
mainfrom
feat/cache-test-apps-and-bundle
May 21, 2026
Merged

feat: skip recompilation on cached test apps + bundle in CI release#70
JusterZhu merged 1 commit into
mainfrom
feat/cache-test-apps-and-bundle

Conversation

@JusterZhu

Copy link
Copy Markdown
Collaborator

Changes

1. Skip recompilation when test apps already cached

SimulationService Step 3 now uses a three-tier strategy:

PriorityStrategyWhen
1Cache hitClient.exe + Upgrade.exe already exist in AppDirectory → skip
2Release bundletest_app_exe/ directory found next to tools → copy pre-built
3Dev compileSource code (csproj) available → dotnet publish

This means repeated simulation runs don't recompile test apps every time.

2. Bundle test apps in CI release package

publish.yml now compiles ClientSample.exe and UpgradeSample.exe during the build and copies them into publish/{rid}/test_app_exe/. The released zip includes:

\
GeneralUpdate.Tools.exe
test_app_exe/
├── ClientSample.exe
└── UpgradeSample.exe
\\

Users can run simulations without .NET SDK or source code — the tools copy the pre-built exes from test_app_exe/ to the target AppDirectory.

SimulationService Step 3: three-tier strategy
1. Cache hit: if Client.exe/Upgrade.exe already exist in AppDirectory → skip
2. Release bundle: if test_app_exe/ exists next to tools → copy pre-built
3. Dev compile: if source (csproj) exists → dotnet publish
CI (publish.yml): compile test apps during build and package into publish/{rid}/test_app_exe/. Released packages work without SDK or source code.
CopilotAI review requested due to automatic review settings May 21, 2026 09:30
@JusterZhu
JusterZhu merged commit 66f3a27 into mainMay 21, 2026
1 check failed
@JusterZhu
JusterZhu deleted the feat/cache-test-apps-and-bundle branch May 21, 2026 09:33
@JusterZhu
JusterZhu removed the request for review from CopilotMay 21, 2026 09:53
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@JusterZhu