Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docfx: update build to use --use-current-runtime #198828

Merged
merged 1 commit into from
Nov 24, 2024
Merged
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
6 changes: 3 additions & 3 deletions Formula/d/docfx.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class Docfx < Formula

Check warning on line 1 in Formula/d/docfx.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

No bottle built for docfx!

docfx has unbottled dependencies, so a bottle will not be built.
desc "Tools for building and publishing API documentation for .NET projects"
homepage "https://dotnet.github.io/docfx/"
url "https://github.com/dotnet/docfx/archive/refs/tags/2.78.1.tar.gz"
Expand All @@ -16,9 +16,9 @@
depends_on "dotnet"

def install
ENV["DOTNET_CLI_TELEMETRY_OPTOUT"] = "1"

dotnet = Formula["dotnet"]
os = OS.mac? ? "osx" : OS.kernel_name.downcase
arch = Hardware::CPU.intel? ? "x64" : Hardware::CPU.arch.to_s

# specify the target framework to only target the currently used version of
# .NET, otherwise additional frameworks will be added due to this running
Expand All @@ -28,8 +28,8 @@
--configuration Release
--framework net#{dotnet.version.major_minor}
--output #{libexec}
--runtime #{os}-#{arch}
--no-self-contained
--use-current-runtime
-p:Version=#{version}
-p:TargetFrameworks=net#{dotnet.version.major_minor}
]
Expand Down
Loading