Skip to content

ci: fix ReadyToRun build + auto-publish release on version bump - #3

Merged
Kofysh merged 1 commit into
masterfrom
claude/gifted-einstein-h0enx4
Jun 14, 2026
Merged

ci: fix ReadyToRun build + auto-publish release on version bump#3
Kofysh merged 1 commit into
masterfrom
claude/gifted-einstein-h0enx4

Conversation

@Kofysh

@Kofysh Kofysh commented Jun 14, 2026

Copy link
Copy Markdown
Owner

What this does

Two CI changes:

1. Fix NETSDK1094 (ReadyToRun publish failure)

  • build.yml — drop --no-restore from Publish so the crossgen2 R2R package is restored (-p:PublishReadyToRun=true stays).
  • global.json — pin the SDK to 9.0.x (rollForward: latestFeature) so the runner stops using the .NET 10 SDK that caused the failure.

2. Auto-release on version bump

  • release.yml — also runs on pushes to master. It reads <InformationalVersion> from the csproj and, if no v<version> tag exists yet, builds + zips + publishes the GitHub Release automatically. Pushing master without a version change is a no-op (no release spam). Manual tag pushes and workflow_dispatch still work.
  • README — documents the new behavior.

Effect of merging

Merging to master will fix the build and automatically publish the v2.2.0 release (current csproj version, no v2.2.0 tag exists yet).

YAML + JSON validated locally.

https://claude.ai/code/session_01FhKJ3kR6pgaR4N3sWSfbFX

Two issues caused the Windows publish to fail with NETSDK1094
("a valid runtime package was not found"):

- The publish step ran with --no-restore, but the preceding restore
  did not know ReadyToRun was requested, so the crossgen2 R2R package
  was never restored. Dropping --no-restore lets publish restore it
  (PublishReadyToRun=true is on the publish command line).
- The runner used the .NET 10 SDK instead of the 9.0.x installed by
  setup-dotnet. Add global.json pinning the SDK to 9.0.x (the target
  framework) so builds are deterministic.

https://claude.ai/code/session_01FhKJ3kR6pgaR4N3sWSfbFX
@Kofysh
Kofysh merged commit 6e234e1 into master Jun 14, 2026
1 check passed
@Kofysh
Kofysh deleted the claude/gifted-einstein-h0enx4 branch June 14, 2026 06:53
@Kofysh Kofysh changed the title ci: fix NETSDK1094 ReadyToRun publish failure ci: fix ReadyToRun build + auto-publish release on version bump Jun 14, 2026
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.

2 participants