Skip to content

Commit

Permalink
catboost-cli(formula): 1.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalvaro committed May 28, 2024
1 parent 026ea73 commit a894d3e
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions Formula/catboost-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ class CatboostCli < Formula
desc "Fast, scalable, high performance Gradient Boosting on Decision Trees cli tool"
homepage "https://catboost.ai"
url "https://github.com/catboost/catboost.git",
tag: "v1.2.3",
revision: "fe0941b208f9c392ce788c314463b6816d335c6a"
tag: "v1.2.5",
revision: "2605fe627ed4271aa8a87ff3564fb68de5f116f0"
license "Apache-2.0"
head "https://github.com/catboost/catboost.git", branch: "master"

Expand All @@ -18,6 +18,7 @@ class CatboostCli < Formula
depends_on "cmake" => :build
depends_on "conan@1" => :build
depends_on "ninja" => :build
depends_on "yq" => :build

uses_from_macos "llvm" => :build

Expand All @@ -28,6 +29,22 @@ class CatboostCli < Formula
end

def install
if ENV.key?("GITHUB_ACTIONS")
# Add current clang version to conan@1
require "yaml"
system "conan", "config", "init"
clang_version = Formula["llvm"].version.major.to_s
settings_file = Utils.safe_popen_read("conan", "config", "home").strip + "/settings.yml"
settings = YAML.load_file(settings_file, aliases: true)
clang_versions = settings["compiler"]["clang"]["version"]
unless clang_versions.include?(clang_version)
clang_versions << Formula["llvm"].version.major.to_s
puts "Settings after change"
puts settings
File.write(settings_file, YAML.dump(settings))
end
end

args = [
"-DCATBOOST_COMPONENTS=app",
"-DHAVE_CUDA=NO",
Expand Down

0 comments on commit a894d3e

Please sign in to comment.