Skip to content

Commit

Permalink
use bdist_wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverwolf-x committed Nov 23, 2024
1 parent 66351b2 commit 46e948a
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/lightgbm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/setup-python@v5
with:
python-version: '3.10'
# - uses: actions/setup-python@v5
# with:
# python-version: '3.10'
- name: boost
uses: MarkusJx/install-boost@main
id: install-boost
Expand All @@ -28,7 +28,7 @@ jobs:
id: cuda-toolkit
# https://docs.nvidia.com/cuda/archive/12.6.2/cuda-installation-guide-microsoft-windows/index.html#id3
with:
cuda: 12.1.1
# cuda: 12.1.1
method: local
# sub-packages: '["nvcc", "visual_studio_integration"]'
sub-packages: '["nvcc", "cudart"]'
Expand Down Expand Up @@ -57,13 +57,17 @@ jobs:
python -V
# pip wheel lightgbm --config-settings=cmake.define.Boost_ROOT=$BOOST_ROOT
pip wheel lightgbm --config-settings=cmake.define.USE_GPU=ON --config-settings=cmake.define.OpenCL_INCLUDE_DIR="$CUDA_PATH/include"--config-settings=cmake.define.Boost_ROOT=$BOOST_ROOT
# pip wheel lightgbm --config-settings=cmake.define.USE_GPU=ON --config-settings=cmake.define.OpenCL_INCLUDE_DIR="$CUDA_PATH/include"--config-settings=cmake.define.Boost_ROOT=$BOOST_ROOT
git clone --recursive https://github.com/Microsoft/LightGBM
cd LightGBM
sh ./build-python.sh bdist_wheel --gpu --boost-include-dir=$BOOST_ROOT
env:
BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }}

- name: Upload all wheel files
uses: actions/upload-artifact@v4
with:
name: lightgbm-wheels
path: ' d:\a\win-whl\win-whl\*lightgbm*.whl'
if-no-files-found: error
- run: tree LightGBM/dist
# - name: Upload all wheel files
# uses: actions/upload-artifact@v4
# with:
# name: lightgbm-wheels
# path: ' d:\a\win-whl\win-whl\*lightgbm*.whl'
# if-no-files-found: error

0 comments on commit 46e948a

Please sign in to comment.