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 5139c9c
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions Formula/catboost-cli.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
require "yaml"

class CatboostCli < Formula
module Utils
extend ::Utils
def self.add_clang_version_to_conan_settings(version)
system "conan", "config", "init"
conan_home = safe_popen_read("conan", "config", "home").strip
settings_file = "#{conan_home}/settings.yml"
settings = YAML.load_file(settings_file, aliases: true)
clang_versions = settings["compiler"]["clang"]["version"]
unless clang_versions.include?(version)
clang_versions << version
File.write(settings_file, YAML.dump(settings))
end
end
end

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 @@ -28,6 +45,8 @@ class CatboostCli < Formula
end

def install

Check failure on line 47 in Formula/catboost-cli.rb

View workflow job for this annotation

GitHub Actions / test-bot (macOS-14)

`brew install --verbose --formula --build-bottle cdalvaro/tap/catboost-cli` failed on macOS Sonoma (14) on Apple Silicon!

==> Fetching cdalvaro/tap/catboost-cli ==> Cloning https://github.com/catboost/tutorials.git Updating /Users/runner/Library/Caches/Homebrew/catboost-cli--testdata--git /usr/bin/env git config remote.origin.url https://github.com/catboost/tutorials.git /usr/bin/env git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master /usr/bin/env git config remote.origin.tagOpt --no-tags /usr/bin/env git config advice.detachedHead false /usr/bin/env git config core.fsmonitor false /usr/bin/env git fetch origin ==> Checking out branch master /usr/bin/env git checkout -f master -- Already on 'master' Your branch is up to date with 'origin/master'. /usr/bin/env git reset --hard origin/master -- HEAD is now at 54c6f8f Pull request "Bump shlex from 1.1.0 to 1.3.0 in /apply_model/rust" by @dependabot from https://github.com/catboost/tutorials/pull/15 931064fd2679a8233ea9b04f63ceea1dda5cd75c ==> Cloning https://github.com/catboost/catboost.git Updating /Users/runner/Library/Caches/Homebrew/catboost-cli--git /usr/bin/env git config remote.origin.url https://github.com/catboost/catboost.git /usr/bin/env git config remote.origin.fetch +refs/tags/v1.2.5:refs/tags/v1.2.5 /usr/bin/env git config remote.origin.tagOpt --no-tags /usr/bin/env git config advice.detachedHead false /usr/bin/env git config core.fsmonitor false ==> Checking out tag v1.2.5 /usr/bin/env git checkout -f v1.2.5 -- HEAD is now at 2605fe627e CatBoost release 1.2.5. 73c7da08458ed5aaa80f6ca0bc00362061158b7e /usr/bin/env git reset --hard v1.2.5 -- HEAD is now at 2605fe627e CatBoost release 1.2.5. 73c7da08458ed5aaa80f6ca0bc00362061158b7e ==> Installing catboost-cli from cdalvaro/tap /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/CMakeLists.linux-x86_64.txt /private/tmp/homebrew-unpack20240528-10501-bf9a5z/CMakeLists.linux-x86_64.txt /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/catboost_command_style_guide_extension.md /private/tmp/homebrew-unpack20240528-10501-bf9a5z/catboost_command_style_guide_extension.md /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/AWESOME.md /private/tmp/homebrew-unpack20240528-10501-bf9a5z/AWESOME.md /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/tools/. /private/tmp/homebrew-unpack20240528-10501-bf9a5z/tools /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/fuzzing/. /private/tmp/homebrew-unpack20240528-10501-bf9a5z/fuzzing /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/CMakeLists.linux-ppc64le.txt /private/tmp/homebrew-unpack20240528-10501-bf9a5z/CMakeLists.linux-ppc64le.txt /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/CMakeLists.txt /private/tmp/homebrew-unpack20240528-10501-bf9a5z/CMakeLists.txt /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/CMakeLists.darwin-arm64.txt /private/tmp/homebrew-unpack20240528-10501-bf9a5z/CMakeLists.darwin-arm64.txt /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/LICENSE /private/tmp/homebrew-unpack20240528-10501-bf9a5z/LICENSE /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/cmake/. /private/tmp/homebrew-unpack20240528-10501-bf9a5z/cmake /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/CPP_STYLE_GUIDE.md /private/tmp/homebrew-unpack20240528-10501-bf9a5z/CPP_STYLE_GUIDE.md /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/util/. /private/tmp/homebrew-unpack20240528-10501-bf9a5z/util /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/CMakeLists.android-arm64.txt /private/tmp/homebrew-unpack20240528-10501-bf9a5z/CMakeLists.android-arm64.txt /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/CMakeLists.linux-aarch64.txt /private/tmp/homebrew-unpack20240528-10501-bf9a5z/CMakeLists.linux-aarch64.txt /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/catboost-cli--git/AUTHORS /private/tmp/homebrew-unpack202
Utils.add_clang_version_to_conan_settings(Formula["llvm"].version.major.to_s) if ENV.key?("GITHUB_ACTIONS")

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

0 comments on commit 5139c9c

Please sign in to comment.