From 608b7e10a4892c7f76f1a9f46582928cffc79151 Mon Sep 17 00:00:00 2001 From: Martijn Laarman Date: Fri, 27 Nov 2026 11:49:42 +0100 Subject: [PATCH] Build with Runna.Fs instead of Nullean.Make.Fs Co-Authored-By: Claude Sonnet 5.5 --- AGENTS.md | 4 ++-- Directory.Packages.props | 4 ++-- build/scripts/Program.fs | 8 ++++---- build/scripts/scripts.fsproj | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index e826266..1ef78c9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,7 +11,7 @@ container (`ghcr.io/nullean/release-notes`) and a GitHub Action (`action.yml`) t |---|---| | `src/release-notes` | the tool (net10.0 and net11.0), a `Nullean.Argh` CLI; `ReleaseNotesCommands.cs` holds the commands | | `src/release-notes/GitHubReleaseClient.cs` | the GitHub writes (releases, labels), source-generated JSON instead of Octokit | -| `build/scripts` | the F# build ([Nullean.Make.Fs](https://www.nuget.org/packages/Nullean.Make.Fs), net11.0) the `mise` tasks and CI call | +| `build/scripts` | the F# build ([Runna.Fs](https://www.nuget.org/packages/Runna.Fs), net11.0) the `mise` tasks and CI call | | `build/keys` | the strong-name key the tool's own assembly is signed with | | `action.yml` | the GitHub Action: runs the `edge` container image | @@ -63,6 +63,6 @@ one release label. This repository's own releases do not run the tool: release-d `List` and `StringEnum` constructors its JSON makes by reflection (#47). Reading a new Octokit model can need a new `StringEnum` there. `./build.sh smokeaot` publishes the AOT binary and reads real releases and issues with it; CI's `aot-pack` job runs it on each RID it builds. -- Build targets are Make.Fs `target { }` blocks in `build/scripts/Program.fs` whose commands are Proc.Fs `sh $"…"` +- Build targets are Runna.Fs `target { }` blocks in `build/scripts/Program.fs` whose commands are Proc.Fs `sh $"…"` lines; values come from `text` inside `shell { }` (`Versions.fs`). Do not call the C# `ProcNet` API from the build. CI calls targets by name (`./build.sh generatepackages -s`): keep multi-word case names as one word. diff --git a/Directory.Packages.props b/Directory.Packages.props index af2c317..01aab35 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -13,9 +13,9 @@ - + - + diff --git a/build/scripts/Program.fs b/build/scripts/Program.fs index ece3642..f68f75e 100644 --- a/build/scripts/Program.fs +++ b/build/scripts/Program.fs @@ -3,10 +3,10 @@ module Program open System open System.IO open System.Runtime.InteropServices -open Nullean.Make.Fs +open Nullean.Runna.Fs open Proc.Fs -/// The build's targets; `./build.sh --help` lists them with these descriptions. Make.Fs turns a case name into +/// The build's targets; `./build.sh --help` lists them with these descriptions. Runna.Fs turns a case name into /// kebab-case, so the multi-word ones are spelled as one word: CI calls `generatepackages`, `publishcontainers`, ... type Target = /// clean known output locations @@ -35,7 +35,7 @@ let private toolProject = Paths.RootRelative Paths.ToolProject.FullName [] let main argv = - let app = MakeApp("./build.sh", None) + let app = RunnaApp("./build.sh", None) let push = app.Flag("--push", desc = "publishcontainers only: push the built image to ghcr.io instead of building it into the local Docker daemon") @@ -127,7 +127,7 @@ let main argv = sh $"dotnet publish {toolProject} -c Release -f net11.0 -r {rid} -o {publish}" let executable = if OperatingSystem.IsWindows() then $"{Paths.ToolName}.exe" else Paths.ToolName let binary = Paths.RootRelative <| Path.Combine(publishDirectory, executable) - // Make.Fs quotes each interpolated hole as one argument, so --token stays in the command text + // Runna.Fs quotes each interpolated hole as one argument, so --token stays in the command text let token = Environment.GetEnvironmentVariable "GITHUB_TOKEN" let run (args: string list) = match token with diff --git a/build/scripts/scripts.fsproj b/build/scripts/scripts.fsproj index 7dc0a57..dfe3e83 100644 --- a/build/scripts/scripts.fsproj +++ b/build/scripts/scripts.fsproj @@ -3,13 +3,13 @@ Exe net11.0 - + true false - +