Skip to content

Commit

Permalink
add lightgbm
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverwolf-x committed Nov 22, 2024
1 parent 87a3cb2 commit f13736c
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/lightgbm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: lightgbm

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: |
choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=System'
choco install -y visualstudio2019buildtools
choco install -y git
choco install -y boost-msvc-14.1
choco install -y cuda
- name: Set up Boost environment
run: |
echo BOOST_ROOT=C:\\local\\boost_1_63_0 >> $GITHUB_ENV
echo BOOST_LIBRARYDIR=C:\\local\\boost_1_63_0\\lib64-msvc-14.1 >> $GITHUB_ENV
- name: Configure build
run: |
cmake -B build -S . -A x64 -DUSE_GPU=1 -DBOOST_ROOT=$BOOST_ROOT -DBOOST_LIBRARYDIR=$BOOST_LIBRARYDIR
- name: Build LightGBM
run: |
cmake --build build --target ALL_BUILD --config Release
- name: Find the built wheel file
run: |
dir /s /b *.whl
- name: Upload wheel file
uses: actions/upload-artifact@v4
with:
name: lightgbm-wheel
path: build\Release\*.whl

0 comments on commit f13736c

Please sign in to comment.