Repository navigation
Publish standalone single-file binaries in GitHub Releases - #1527
Merged
Merged
Conversation
StefH
approved these changes
Oct 30, 2026
This was referenced Nov 8, 2026
Merged
This was referenced Nov 23, 2026
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, running WireMock.Net as a standalone CLI tool requires either having the .NET SDK installed (
dotnet tool install -g dotnet-wiremock), building a custom console project, or using Docker. Providing ready-to-use, self-contained standalone executables directly in GitHub Releases makes it much easier for users and CI/CD pipelines across ecosystems to download and run WireMock.Net out of the box without needing a pre-installed .NET runtime or container engine.This PR updates the release workflow to publish self-contained, single-file
dotnet-WireMockbinaries for Windows (win-x64,win-arm64), Linux (linux-x64,linux-arm64), and macOS (osx-x64,osx-arm64), and attaches them as.zip/.tar.gzarchives to each GitHub Release:src/dotnet-WireMock.Net/dotnet-WireMock.csproj: MakePackAsToolandGeneratePackageOnBuildconditional on'$(PublishSingleFile)' != 'true'so that single-file publishing works alongside standard.NETglobal tool packaging..github/workflows/CreateRelease.yml: Build and package self-contained single-file executables for each target platform, upload them as workflow artifacts, and attach them to the GitHub Release when triggered by a release tag (also addsworkflow_dispatchfor manual workflow testing).