-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
66 lines (59 loc) · 2.08 KB
/
windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: XGBoost CI (Windows)
on: [push, pull_request]
permissions:
contents: read # to fetch code (actions/checkout)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: powershell
env:
BRANCH_NAME: >-
${{ github.event.pull_request.number && 'PR-' }}${{ github.event.pull_request.number || github.ref_name }}
jobs:
build-win64-gpu:
name: Build XGBoost for Windows with CUDA
runs-on:
- runs-on=${{ github.run_id }}
- runner=windows-cpu
- tag=windows-build-win64-gpu
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- run: powershell ops/pipeline/build-win64-gpu.ps1
- name: Stash files
shell: powershell
run: |
conda activate
python ops/pipeline/manage-artifacts.py upload `
--s3-bucket ${{ env.RUNS_ON_S3_BUCKET_CACHE }} `
--prefix cache/${{ github.run_id }}/build-win64-gpu `
build/testxgboost.exe xgboost.exe `
(Get-ChildItem python-package/dist/*.whl | Select-Object -Expand FullName)
test-win64-gpu:
name: Test XGBoost on Windows
needs: build-win64-gpu
runs-on:
- runs-on=${{ github.run_id }}
- runner=windows-gpu
- tag=windows-test-win64-gpu
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Unstash files
shell: powershell
run: |
conda activate
python ops/pipeline/manage-artifacts.py download `
--s3-bucket ${{ env.RUNS_ON_S3_BUCKET_CACHE }} `
--prefix cache/${{ github.run_id }}/build-win64-gpu `
--dest-dir build `
*.whl testxgboost.exe xgboost.exe
Move-Item -Path build/xgboost.exe -Destination .
New-Item -ItemType Directory -Path python-package/dist/ -Force
Move-Item -Path (Get-ChildItem build/*.whl | Select-Object -Expand FullName) `
-Destination python-package/dist/
- run: powershell ops/pipeline/test-win64-gpu.ps1