Skip to content

fix: use --use-current-runtime for cross-platform publish in CI - #8

Merged
VAllens merged 5 commits into
masterfrom
copilot/resolve-github-actions-failure
Aug 11, 2026
Merged

fix: use --use-current-runtime for cross-platform publish in CI#8
VAllens merged 5 commits into
masterfrom
copilot/resolve-github-actions-failure

Conversation

Copilot AI commented Aug 11, 2026

Copy link
Copy Markdown

dotnet restore ran without a RID while dotnet publish used --no-restore -r linux-x64, causing publish to fail because RID-specific NuGet assets were never restored.

Changes

  • Restore: replaced platform-conditional steps (one with -r linux-x64, one without) with a single dotnet restore --use-current-runtime, letting the SDK pick the correct RID automatically
  • Publish: replaced -r linux-x64 with --use-current-runtime; changed --self-contained false--self-contained (true)
  • Scope: removed if: runner.os == 'Linux' from both Publish and Upload steps — publish now runs on all matrix targets
  • Output path: generalized from artifacts/linux-x64artifacts/publish; artifact name changed to crawler-samples-${{ matrix.os }} to avoid collisions between matrix jobs

Copilot AI and others added 4 commits August 11, 2026 09:58
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>
@VAllens
VAllens marked this pull request as ready for review August 11, 2026 11:08
@VAllens
VAllens self-requested a review as a code owner August 11, 2026 11:08
Copilot AI lite review requested due to automatic review settings August 11, 2026 11:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 restore with --use-current-runtime to restore runtime-specific NuGet assets consistently.
  • Publish with --use-current-runtime, publish into a generalized artifacts/publish folder, 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 thread .github/workflows/ci.yml
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
VAllens merged commit 66d8876 into master Aug 11, 2026
5 checks passed
@VAllens
VAllens deleted the copilot/resolve-github-actions-failure branch August 11, 2026 12:07
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.

3 participants