@@ -34,33 +34,51 @@ jobs:
34
34
- name : Install build dependencies
35
35
run : |
36
36
python -m pip install --upgrade pip
37
- python -m pip install wheel setuptools awscli
37
+ python -m pip install wheel setuptools awscli packaging
38
38
39
39
- name : Build XGBoost for Win-ARM64
40
40
run : |
41
41
mkdir build
42
42
cd build
43
43
cmake .. -G"Visual Studio 17 2022" -A ARM64
44
44
cmake --build . --config Release -- /m /nodeReuse:false "/consoleloggerparameters:ShowCommandLine;Verbosity=minimal"
45
+
46
+ - name : Build Python wheel xgboost for Win-ARM64
47
+ run : |
48
+ cd python-package
49
+ mkdir -p wheelhouse
50
+ pip wheel --no-deps -v . --wheel-dir wheelhouse/
51
+ $wheelFile = Get-ChildItem wheelhouse/*.whl | Select-Object -First 1 -ExpandProperty FullName
52
+ python -m wheel tags --python-tag py3 --abi-tag none --platform win_arm64 --remove $wheelFile
53
+
54
+ - name : Upload Python wheel xgboost
55
+ if : github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')
56
+ run : |
57
+ $wheelFile = Get-ChildItem python-package/wheelhouse/*.whl | Select-Object -First 1 -ExpandProperty FullName
58
+ python ops/pipeline/manage-artifacts.py upload `
59
+ --s3-bucket xgboost-nightly-builds `
60
+ --prefix ${{ env.BRANCH_NAME }}/${{ github.sha }} --make-public `
61
+ $wheelFile
62
+ Remove-Item -Path $wheelFile -Verbose
45
63
46
- - name : Build XGBoost Python wheel for Win-ARM64
64
+ - name : Build Python wheel xgboost-cpu for Win-ARM64
47
65
run : |
48
66
# Patch to rename pkg to xgboost-cpu
49
67
python ops/script/pypi_variants.py --use-suffix=cpu --require-nccl-dep=na
50
68
cd python-package
51
- mkdir -p wheelhouse
52
69
pip wheel --no-deps -v . --wheel-dir wheelhouse/
53
70
$wheelFile = Get-ChildItem wheelhouse/*.whl | Select-Object -First 1 -ExpandProperty FullName
54
71
python -m wheel tags --python-tag py3 --abi-tag none --platform win_arm64 --remove $wheelFile
55
72
56
- - name : Upload Python wheel
73
+ - name : Upload Python wheel xgboost-cpu
57
74
if : github.ref == 'refs/heads/master' || contains(github.ref, 'refs/heads/release_')
58
75
run : |
59
76
$wheelFile = Get-ChildItem python-package/wheelhouse/*.whl | Select-Object -First 1 -ExpandProperty FullName
60
77
python ops/pipeline/manage-artifacts.py upload `
61
78
--s3-bucket xgboost-nightly-builds `
62
79
--prefix ${{ env.BRANCH_NAME }}/${{ github.sha }} --make-public `
63
80
$wheelFile
81
+
64
82
env :
65
83
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID_IAM_S3_UPLOADER }}
66
84
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY_IAM_S3_UPLOADER }}
0 commit comments