Skip to content

Build on the .NET 11 SDK and bootstrap the toolchain with mise - #46

Merged
Mpdreamz merged 1 commit into
mainfrom
feature/nullean-standard
Nov 11, 2026
Merged

Mpdreamz merged 1 commit into
mainfrom
feature/nullean-standard

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

assembly-differ now builds on the .NET 11 SDK, and mise run <task> becomes its single entry point. CI keeps its AOT matrix, container image and tag release, now set up through mise with every action pinned, and a zizmor job checks the workflows.

Prompt summary: Bring every nullean repository onto one standard: .NET 11, mise for bootstrapping, the same mise run task names everywhere, and hardened CI. This applies step 1 of the rollout playbook, as proven on nullean/proc#34.

Why

global.json pinned SDK 10.0.100 and each CI job installed 10.0.x with setup-dotnet, so nothing gave a contributor the toolchain in one step. The workflows used unpinned actions, left checkout credentials on disk, interpolated secrets.GITHUB_TOKEN and the NuGet login output straight into run: scripts, and still triggered on master, which no longer exists. clean ran dotnet clean on the whole solution, which includes the build project, so it could delete assemblies the running build still had to load.

What

SDK 11 and mise

global.json pins 11.0.100. mise.toml installs that SDK, read from global.json so the version lives in one place, plus the net10.0 runtime the build project, nupkg-validator and the public API diff run on. Its tasks build, pack, ci, check and clean call the build/scripts targets. There are no tests, so ci is pack: build, pack, validate, public API diff. ./build.sh stays, because CI still calls it step by step.

Build targets

The build adds pack and ci. clean now cleans the projects under src, leaving the running build project alone.

Workflow hardening

The aot-pack and build jobs keep their shape and set up through jdx/mise-action without a cache, because this workflow publishes what it builds. Every action is pinned by SHA with its tag (docker/login-action stays on v3, at v3.7.0). No checkout keeps credentials except create-major-tag, which pushes. Tokens and the NuGet key reach run: steps through env, and so does the matrix RID. The setup-dotnet source-url the canary push relied on becomes an explicit -s https://nuget.pkg.github.com/nullean/index.json. The workflow-level token drops to contents: read; the build job already declared the write permissions it needs. Pushes to main trigger CI and publish the canary and the edge image, as master did. A zizmor job calls the shared workflow from nullean/.github at v1.3.0. A workflow_dispatch trigger runs the full RID matrix on demand without publishing anything.

Agent docs

AGENTS.md describes the layout, commands, packaging and rules. CLAUDE.md points to it.

Out of scope: CI's build job still skips validatepackages, commented out since #37; mise run ci runs it and it passes, so turning it back on in CI is a separate change. Also the release-drafter release flow, CPM and package metadata, target frameworks (still net8.0 and net10.0), and curb formatting. Each follows in its own PR.

Verify

mise install
mise run ci

Locally on macOS: ./build.sh build, generatepackages, validatepackages and generateapichanges on main (SDK 10.0.403) and mise run ci on this branch (SDK 11.0.100) both produce assembly-differ and assembly-differ.any with identical file lists and nuspecs. zizmor --min-severity medium . reports no findings and actionlint is clean.

🤖 Generated with Claude Code

global.json pins SDK 11.0.100; mise.toml installs it (read from global.json) plus the net10.0 runtime
the build, nupkg-validator and the API diff run on, and maps build, pack, ci, check and clean onto the
build/scripts targets. The build gains pack and ci targets, and clean no longer cleans the running
build project.

CI keeps its AOT matrix, ghcr image and tag release, now set up through mise-action with every action
pinned by SHA, no persisted checkout credentials, tokens passed through env, the canary push naming
its source explicitly, read-only default permissions, main instead of master, and a zizmor job.
AGENTS.md and CLAUDE.md document the tasks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Mpdreamz Mpdreamz added the ci Build and automation (patch) label Nov 11, 2026
@Mpdreamz
Mpdreamz merged commit 940ebbb into main Nov 11, 2026
10 checks passed
@Mpdreamz
Mpdreamz deleted the feature/nullean-standard branch November 11, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Build and automation (patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant