Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

Expand Down Expand Up @@ -63,6 +63,6 @@ one release label. This repository's own releases do not run the tool: release-d
`List<T>` and `StringEnum<T>` constructors its JSON makes by reflection (#47). Reading a new Octokit model can need a
new `StringEnum<T>` 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.
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

<!-- build/scripts -->
<ItemGroup>
<!-- under CPM the F# SDK adds no implicit FSharp.Core; Nullean.Make.Fs needs 11.0.100 or later -->
<!-- under CPM the F# SDK adds no implicit FSharp.Core; Runna.Fs needs 11.0.100 or later -->
<PackageVersion Include="FSharp.Core" Version="11.0.101" />
<!-- brings Proc and Proc.Fs -->
<PackageVersion Include="Nullean.Make.Fs" Version="0.30.0" />
<PackageVersion Include="Runna.Fs" Version="0.2.1" />
</ItemGroup>
</Project>
8 changes: 4 additions & 4 deletions build/scripts/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -35,7 +35,7 @@ let private toolProject = Paths.RootRelative Paths.ToolProject.FullName

[<EntryPoint>]
let main argv =
let app = MakeApp<Target>("./build.sh", None)
let app = RunnaApp<Target>("./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")

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions build/scripts/scripts.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net11.0</TargetFramework>
<!-- Nullean.Make.Fs reads the target descriptions from the /// comments in Program.fs -->
<!-- Runna.Fs reads the target descriptions from the /// comments in Program.fs -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="FSharp.Core" />
<PackageReference Include="Nullean.Make.Fs" />
<PackageReference Include="Runna.Fs" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading