From 46e948a23749dfea4db63e0aa2a4cf45cf96b4fd Mon Sep 17 00:00:00 2001 From: silverwolf-x <185666132@qq.com> Date: Sat, 23 Nov 2024 17:07:49 +0800 Subject: [PATCH] use bdist_wheel --- .github/workflows/lightgbm.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/lightgbm.yml b/.github/workflows/lightgbm.yml index ed1bfab..c450402 100644 --- a/.github/workflows/lightgbm.yml +++ b/.github/workflows/lightgbm.yml @@ -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 @@ -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"]' @@ -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