Skip to content

Commit

Permalink
Build the CUDAQ python wheels
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Howe <[email protected]>
  • Loading branch information
bmhowe23 committed Jan 14, 2025
1 parent 30e1491 commit d2de3d7
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/actions/get-cudaq-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,41 @@ runs:
run: bash ${{ env.cudaq-build-script }} Release ccache gcc-11 g++-11
shell: bash --noprofile --norc -euo pipefail {0}

# ==========================================================================
# Build the Python wheels
# ==========================================================================

- name: Set up context for buildx
run: |
docker context create builder_context
shell: bash --noprofile --norc -euo pipefail {0}

- name: Set up buildx runner
uses: docker/setup-buildx-action@v3
with:
endpoint: builder_context
driver-opts: network=host

- name: Build wheel
id: wheel_build
uses: docker/build-push-action@v5
with:
context: cudaq
file: ./cudaq/docker/release/cudaq.wheel.Dockerfile
build-args: |
base_image=ghcr.io/nvidia/cuda-quantum-devdeps:manylinux-${{ inputs.platform }}-cu12.0-gcc11-main
release_version=0.0.0
python_version=3.10
outputs: /tmp/wheels

- name: Upload wheel
uses: actions/upload-artifact@v4
with:
name: pycudaq-${{ inputs.platform }}-3.10
path: /tmp/wheels
retention-days: 1
if-no-files-found: error

# ==========================================================================
# Store CUDAQ compilation cache
# ==========================================================================
Expand Down

0 comments on commit d2de3d7

Please sign in to comment.