Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
JusterZhu merged 1 commit into
mainGeneralLibrary/GeneralUpdate.Tools:mainfrom
feat/cache-test-apps-and-bundleGeneralLibrary/GeneralUpdate.Tools:feat/cache-test-apps-and-bundleCopy head branch name to clipboard
May 21, 2026
Merged

feat: skip recompilation on cached test apps + bundle in CI release#70
JusterZhu merged 1 commit into
mainGeneralLibrary/GeneralUpdate.Tools:mainfrom
feat/cache-test-apps-and-bundleGeneralLibrary/GeneralUpdate.Tools:feat/cache-test-apps-and-bundleCopy head branch name to clipboard

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:

Priority Strategy When
1 Cache hit Client.exe + Upgrade.exe already exist in AppDirectory → skip
2 Release bundle test_app_exe/ directory found next to tools → copy pre-built
3 Dev compile Source 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.
Copilot AI review requested due to automatic review settings May 21, 2026 09:30
@JusterZhu JusterZhu merged commit 66f3a27 into main May 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 Copilot May 21, 2026 09:53
Sign up for free to 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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.