From 48bbd15a092fbf702bb77b58039a9a30032f6328 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20A=CC=81lvaro?= Date: Tue, 23 Apr 2024 09:01:56 +0200 Subject: [PATCH] catboost-cli(formula): 1.2.5 --- Formula/catboost-cli.rb | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Formula/catboost-cli.rb b/Formula/catboost-cli.rb index ef0738f..cfe2634 100644 --- a/Formula/catboost-cli.rb +++ b/Formula/catboost-cli.rb @@ -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" @@ -28,6 +28,17 @@ class CatboostCli < Formula end def install + clang_version = Formula["llvm"].version&.split(".")&.first + if clang_version && ENV.key?(:GITHUB_ACTIONS) + # Add current clang version to conan@1 + system "conan", "profile", "new", "clang-latest", "--detect" + system "conan", "profile", "update", "settings.compiler=clang", "clang-latest" + system "conan", "profile", "update", "settings.compiler.version=#{Formula["llvm"].version.split(".").first}", + "clang-latest" + system "conan", "profile", "update", "settings.compiler.libcxx=libstdc++11", "clang-latest" + system "conan", "install", ".", "--profile=clang-latest" + end + args = [ "-DCATBOOST_COMPONENTS=app", "-DHAVE_CUDA=NO",