-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87a3cb2
commit b076d34
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v2 | ||
|
||
- 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@v2 | ||
with: | ||
name: lightgbm-wheel | ||
path: build\Release\*.whl |