Reduce duplication in GRUKE script #4

Merged
MabelAmber merged 2 commits from greem/SubConv:main into main 2026-11-19 21:21:18 -08:00
Contributor

Extracted Compile & Package's duplicated code into a local function.
The compilation and packaging logic is identical to before, and I changed the file deleting lines to be much simpler with GRUKE's built-in helpers on AbsolutePath.

Additionally, the Package step's Executes block has been changed to synchronous, as async targets are merely a convenience for APIs which are async-only, and still run sync behind-the-scenes. (source)

Extracted Compile & Package's duplicated code into a local function. The compilation and packaging logic is identical to before, and I changed the file deleting lines to be much simpler with GRUKE's [built-in helpers](https://nuke.greemdev.net/docfx/api/Nuke.Common.IO.AbsolutePathExtensions.html) on [AbsolutePath](https://nuke.greemdev.net/docfx/api/Nuke.Common.IO.AbsolutePath.html). Additionally, the Package step's `Executes` block has been changed to synchronous, as async targets are merely a convenience for APIs which are async-only, and still run sync behind-the-scenes. ([source](https://nuke.greemdev.net/release/fundamentals/targets/#__tabbed_1_2))
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MabelAmber/SubConv!4
No description provided.