-
Notifications
You must be signed in to change notification settings - Fork 8
224 lines (209 loc) · 6.5 KB
/
github-actions.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
name: legate-boost build/test
concurrency:
group: ci-on-${{ github.event_name }}-from-${{ github.ref_name }}
cancel-in-progress: true
on:
push:
branches:
- "pull-request/[0-9]+"
- "main"
env:
# where conda-build puts files it creates
RAPIDS_CONDA_BLD_OUTPUT_DIR: /tmp/conda-bld-output
# where jobs that download conda packages store the local channel
RAPIDS_LOCAL_CONDA_CHANNEL: /tmp/local-conda-packages
jobs:
# group together all jobs that must pass for a PR to be merged
# (for use by branch protections)
pr-builder:
# skip on builds from merges to main
if: github.ref != 'refs/heads/main'
needs:
- pre-commit
- conda-python-build
- conda-python-tests-cpu
- conda-python-tests-gpu
- docs-build
uses: rapidsai/shared-workflows/.github/workflows/[email protected]
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pre-commit/[email protected]
conda-python-build:
needs:
- pre-commit
strategy:
fail-fast: false
# available legate-core and cunumeric packages:
#
# * https://anaconda.org/legate/legate-core
# * https://anaconda.org/legate/cunumeric
#
# Valid set of RAPIDS ci-conda image tags:
#
# * https://hub.docker.com/r/rapidsai/ci-conda/tags
matrix:
ARCH:
- "amd64"
CUDA_VER:
- "12.5.1"
PY_VER:
- "3.10"
- "3.11"
- "3.12"
runs-on: linux-${{ matrix.ARCH }}-cpu4
container:
image: "rapidsai/ci-conda:cuda${{ matrix.CUDA_VER }}-ubuntu22.04-py${{ matrix.PY_VER }}"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# the notebooks and PNG files stored in git LFS aren't necessary for package-building
lfs: false
- name: build
run: |
ci/build_python.sh
- name: upload
uses: actions/upload-artifact@v4
with:
name: legate-boost-conda-cuda${{ matrix.CUDA_VER }}-${{ matrix.ARCH }}-py${{ matrix.PY_VER }}
path: ${{ env.RAPIDS_CONDA_BLD_OUTPUT_DIR }}
if-no-files-found: error
conda-python-tests-cpu:
needs:
- pre-commit
- conda-python-build
strategy:
fail-fast: false
matrix:
include:
- ARCH: "amd64"
CUDA_VER: "12.5.1"
PY_VER: "3.11"
runs-on: linux-${{ matrix.ARCH }}-cpu16
container:
image: "rapidsai/ci-conda:cuda${{ matrix.CUDA_VER }}-ubuntu22.04-py${{ matrix.PY_VER }}"
steps:
- name: install git-lfs
run: |
conda install --yes \
-c conda-forge \
git-lfs
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: download conda packages
uses: actions/download-artifact@v4
with:
name: legate-boost-conda-cuda${{ matrix.CUDA_VER }}-${{ matrix.ARCH }}-py${{ matrix.PY_VER }}
path: ${{ env.RAPIDS_LOCAL_CONDA_CHANNEL }}
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
run-id: ${{ github.run_id }}
- name: test
run: |
ci/test_python_cpu.sh
conda-python-tests-gpu:
needs:
- pre-commit
- conda-python-build
strategy:
fail-fast: false
# As of the last time this was updated, legate-core / cunumeric packages were published for only:
#
# * architectures: amd64 only
# * CUDA: >=12.2
# * Python: 3.10, 3.11, 3.12
#
# Valid set of RAPIDS ci-conda image tags: https://hub.docker.com/r/rapidsai/ci-conda/tags
matrix:
include:
- ARCH: "amd64"
CUDA_VER: "12.5.1"
PY_VER: "3.10"
runs-on: linux-${{ matrix.ARCH }}-gpu-v100-latest-1
container:
image: "rapidsai/ci-conda:cuda${{ matrix.CUDA_VER }}-ubuntu22.04-py${{ matrix.PY_VER }}"
env:
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }}
steps:
- name: install git-lfs
run: |
conda install --yes \
-c conda-forge \
git-lfs
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: download conda packages
uses: actions/download-artifact@v4
with:
name: legate-boost-conda-cuda${{ matrix.CUDA_VER }}-${{ matrix.ARCH }}-py${{ matrix.PY_VER }}
path: ${{ env.RAPIDS_LOCAL_CONDA_CHANNEL }}
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
run-id: ${{ github.run_id }}
- name: test
run: |
ci/test_python_gpu.sh
docs-build:
needs:
- conda-python-build
runs-on: linux-amd64-cpu4
strategy:
matrix:
include:
- ARCH: amd64
CUDA_VER: "12.5.1"
PY_VER: "3.12"
container:
image: "rapidsai/ci-conda:cuda${{ matrix.CUDA_VER }}-ubuntu22.04-py${{ matrix.PY_VER }}"
steps:
- name: install git-lfs
run: |
conda install --yes \
-c conda-forge \
git-lfs
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: download conda packages
uses: actions/download-artifact@v4
with:
name: legate-boost-conda-cuda${{ matrix.CUDA_VER }}-${{ matrix.ARCH }}-py${{ matrix.PY_VER }}
path: ${{ env.RAPIDS_LOCAL_CONDA_CHANNEL }}
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
run-id: ${{ github.run_id }}
- name: build docs
run: |
ci/build_docs.sh
- uses: actions/upload-pages-artifact@v3
with:
path: docs/build/html
deploy:
needs:
- conda-python-build
- conda-python-tests-cpu
- conda-python-tests-gpu
- docs-build
# only main branch uploads docs
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4