-
Notifications
You must be signed in to change notification settings - Fork 17
57 lines (49 loc) · 1.44 KB
/
build_wheels.yaml
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
name: Build wheels
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux-build:
name: Linux build
runs-on: ubuntu-latest
# CUDAQ requires a highly specialized environment to build. Thus, it is much
# easier to rely on their's devdeps images to do the building.
container: ghcr.io/nvidia/cuda-quantum-devdeps:manylinux-amd64-${{ matrix.toolchain.id }}-main
permissions:
actions: write
contents: read
strategy:
fail-fast: false
matrix:
python: ['3.10', '3.11', '3.12']
toolchain:
- id: cu12.0-gcc11
cc: gcc-11
cxx: g++-11
build-type: Release
steps:
- name: Get code
uses: actions/checkout@v4
with:
set-safe-directory: true
- name: Get CUDAQ code
uses: actions/checkout@v4
with:
repository: 'NVIDIA/cuda-quantum'
ref: ${{ inputs.ref }}
path: cudaq
set-safe-directory: true
- name: Build CUDAQ toolchain
run: |
.github/workflows/scripts/build_cudaq.sh
- name: Build wheels
run: |
.github/workflows/scripts/build_wheels.sh \
--cudaq-prefix $HOME/.cudaq \
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: wheels-py${{ matrix.python }}-amd64
path: /wheels/**