Build wheels #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build wheels | |
on: | |
workflow_dispatch: | |
inputs: | |
build_type: | |
type: choice | |
required: true | |
description: 'Build Type' | |
default: 'Release' | |
options: | |
- 'Release' | |
- 'Debug' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
linux-build: | |
name: Linux build | |
runs-on: linux-amd64-cpu8 | |
# 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 required CUDAQ version | |
id: get-cudaq-version | |
uses: ./.github/actions/get-cudaq-version | |
- name: Get CUDAQ code | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ steps.get-cudaq-version.outputs.repo }} | |
ref: ${{ steps.get-cudaq-version.outputs.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 \ | |
--build-type ${{ inputs.build_type }} | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheels-py${{ matrix.python }}-amd64 | |
path: /wheels/** |