fix: use --use-current-runtime for cross-platform publish in CI - #8
Merged
Conversation
Co-authored-by: VAllens <5094922+VAllens@users.noreply.github.com>
…estore Co-authored-by: VAllens <5094922+VAllens@users.noreply.github.com>
Co-authored-by: VAllens <5094922+VAllens@users.noreply.github.com>
…t path Co-authored-by: VAllens <5094922+VAllens@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
VAllens
August 11, 2026 11:08
View session
VAllens
marked this pull request as ready for review
August 11, 2026 11:08
VAllens
approved these changes
Aug 11, 2026
There was a problem hiding this comment.
Pull request overview
Adjusts the CI workflow to restore/publish with the current runtime RID across matrix OSes, preventing RID-specific asset mismatches between restore and publish.
Changes:
- Run
dotnet restorewith--use-current-runtimeto restore runtime-specific NuGet assets consistently. - Publish with
--use-current-runtime, publish into a generalizedartifacts/publishfolder, and upload per-OS artifacts. - Remove Linux-only conditionals so publish/upload run on all matrix targets.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+42
to
+44
| --use-current-runtime | ||
| --self-contained | ||
| -o artifacts/publish |
Co-authored-by: VAllens <5094922+VAllens@users.noreply.github.com>
VAllens
approved these changes
Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dotnet restoreran without a RID whiledotnet publishused--no-restore -r linux-x64, causing publish to fail because RID-specific NuGet assets were never restored.Changes
-r linux-x64, one without) with a singledotnet restore --use-current-runtime, letting the SDK pick the correct RID automatically-r linux-x64with--use-current-runtime; changed--self-contained false→--self-contained(true)if: runner.os == 'Linux'from both Publish and Upload steps — publish now runs on all matrix targetsartifacts/linux-x64→artifacts/publish; artifact name changed tocrawler-samples-${{ matrix.os }}to avoid collisions between matrix jobs