-
Notifications
You must be signed in to change notification settings - Fork 11
65 lines (58 loc) · 1.67 KB
/
_conda_cuda_build.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
name: Build Conda Package (CUDA)
on:
workflow_call:
inputs:
os:
type: string
default: "32-core-ubuntu"
python-version:
required: true
type: string
cu-version:
required: true
type: string
artifact:
required: true
type: string
jobs:
build:
runs-on: ${{ inputs.os }}
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ inputs.python-version }}
- name: Install conda-build
run: conda install conda-build
- name: Build SPDL
run: |
mkdir ~/package
conda build \
-c nvidia/label/cuda-${{ inputs.cu-version }} \
./packaging/conda \
--python=${{ inputs.python-version }} \
--output-folder ~/package
env:
CU_VERSION: ${{ inputs.cu-version }}
CONDA_CUDATOOLKIT_CONSTRAINT: "- nvidia/label/cuda-${{ inputs.cu-version }}::cuda-toolkit"
CONDA_CUDARUNTIME_CONSTRAINT: "- nvidia/label/cuda-${{ inputs.cu-version }}::cuda-runtime"
SPDL_USE_CUDA: "1"
SPDL_USE_NVCODEC: "1"
SPDL_USE_NVJPEG: "1"
SPDL_USE_NPPI: "1"
SPDL_LINK_STATIC_NVJPEG: "0"
SPDL_USE_TRACING: "1"
SPDL_BUILD_STUB: "0"
- uses: actions/upload-artifact@v4
name: Upload build artifact
with:
name: "${{ inputs.artifact }}"
path: ~/package
if-no-files-found: error
retention-days: 7
overwrite: true