Skip to content

Commit

Permalink
Update setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored Oct 5, 2024
1 parent d16e0e0 commit 55452c4
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .ci/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,18 @@ set -e -E -u -o pipefail
export COMPILER="gcc"
export OS_NAME="macos"

MACPORTS_URL=https://distfiles.macports.org/MacPorts
MACPORTS_PKG=MacPorts-2.8.1-13-Ventura.pkg
MACPORTS_PREFIX=/opt/local
MACPORTS_PATH=/tmp/$MACPORTS_PKG
brew install cmake
brew install libomp

# Download and install MacPorts
curl $MACPORTS_URL/$MACPORTS_PKG > $MACPORTS_PATH || exit 1
sudo installer -pkg $MACPORTS_PATH -target / || exit 2
export PATH=$MACPORTS_PREFIX/bin:$PATH
git clone --recursive https://github.com/microsoft/LightGBM
cd LightGBM
cmake -B build -S .
cmake --build build -j4

# Just to be sure
sudo port -q selfupdate | cat
sudo port -q upgrade outdated | cat

sudo port -v

sudo port install LightGBM
ls

cd "./examples/regression/"
lightgbm config="train.conf"
"../../lightgbm" config="train.conf"

# if [[ $OS_NAME == "macos" ]]; then
# if [[ $COMPILER == "clang" ]]; then
Expand Down

0 comments on commit 55452c4

Please sign in to comment.