Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/build_wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ on:
type: string
default: ''
required: false
cudaq_repo:
type: string
description: Optional CUDA-Q repository override.
default: ''
required: false
cudaq_ref:
type: string
description: Optional CUDA-Q ref override.
default: ''
required: false
cache_key_suffix:
type: string
default: ''
Expand All @@ -76,7 +86,7 @@ on:
required: false

concurrency:
group: ${{ github.workflow }}-build-wheels-${{ github.ref }}
group: ${{ github.workflow }}-build-wheels-${{ github.ref }}-${{ inputs.cudaq_repo || 'default-repo' }}-${{ inputs.cudaq_ref || 'default-ref' }}
cancel-in-progress: true

jobs:
Expand Down Expand Up @@ -176,6 +186,9 @@ jobs:
- name: Get required CUDAQ version
id: get-cudaq-version
uses: ./.github/actions/get-cudaq-version
with:
repo: ${{ inputs.cudaq_repo }}
ref: ${{ inputs.cudaq_ref }}

- name: Get CUDAQ code
uses: actions/checkout@v4
Expand Down Expand Up @@ -283,6 +296,9 @@ jobs:
- name: Get required CUDAQ version
id: get-cudaq-version
uses: ./.github/actions/get-cudaq-version
with:
repo: ${{ inputs.cudaq_repo }}
ref: ${{ inputs.cudaq_ref }}

- name: Get CUDAQ wheels
uses: ./.github/actions/get-cudaq-wheels
Expand Down
101 changes: 57 additions & 44 deletions .github/workflows/nightly_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
workflow_dispatch:

jobs:
wheels:
name: Build and test wheels
uses: ./.github/workflows/build_wheels.yaml
with:
build_type: Release
cudaq_wheels: Custom
cache_key_suffix: nightly
secrets: inherit
# wheels:
# name: Build and test wheels
# uses: ./.github/workflows/build_wheels.yaml
# with:
# build_type: Release
# cudaq_wheels: Custom
# cache_key_suffix: nightly
# secrets: inherit

resolve-cudaq-main:
name: Resolve CUDA-Q main
Expand Down Expand Up @@ -74,57 +74,70 @@ jobs:
save-ccache: false
platform: ${{ matrix.platform }}-cu${{ steps.config.outputs.cuda_major }}

cudaq-main-all-libs:
name: All libs against CUDA-Q main
needs: [resolve-cudaq-main, build-cudaq-main]
uses: ./.github/workflows/all_libs.yaml
with:
cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }}
cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }}
cache_key_suffix: nightly
secrets: inherit
# cudaq-main-all-libs:
# name: All libs against CUDA-Q main
# needs: [resolve-cudaq-main, build-cudaq-main]
# uses: ./.github/workflows/all_libs.yaml
# with:
# cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }}
# cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }}
# cache_key_suffix: nightly
# secrets: inherit

cudaq-main-qec:
name: QEC against CUDA-Q main
needs: [resolve-cudaq-main, build-cudaq-main]
uses: ./.github/workflows/lib_qec.yaml
with:
cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }}
cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }}
cache_key_suffix: nightly
secrets: inherit
# cudaq-main-qec:
# name: QEC against CUDA-Q main
# needs: [resolve-cudaq-main, build-cudaq-main]
# uses: ./.github/workflows/lib_qec.yaml
# with:
# cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }}
# cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }}
# cache_key_suffix: nightly
# secrets: inherit

cudaq-main-solvers:
name: Solvers against CUDA-Q main
needs: [resolve-cudaq-main, build-cudaq-main]
uses: ./.github/workflows/lib_solvers.yaml
with:
cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }}
cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }}
cache_key_suffix: nightly
secrets: inherit
# cudaq-main-solvers:
# name: Solvers against CUDA-Q main
# needs: [resolve-cudaq-main, build-cudaq-main]
# uses: ./.github/workflows/lib_solvers.yaml
# with:
# cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }}
# cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }}
# cache_key_suffix: nightly
# secrets: inherit

# cudaq-main-docs:
# name: Docs against CUDA-Q main
# needs: [resolve-cudaq-main, build-cudaq-main]
# uses: ./.github/workflows/docs.yaml
# with:
# cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }}
# cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }}
# cache_key_suffix: nightly
# secrets: inherit

cudaq-main-docs:
name: Docs against CUDA-Q main
cudaq-main-wheels:
name: Wheels against CUDA-Q main
needs: [resolve-cudaq-main, build-cudaq-main]
uses: ./.github/workflows/docs.yaml
uses: ./.github/workflows/build_wheels.yaml
with:
build_type: Release
cudaq_wheels: Custom
cache_key_suffix: nightly
cudaq_repo: ${{ needs.resolve-cudaq-main.outputs.repo }}
cudaq_ref: ${{ needs.resolve-cudaq-main.outputs.ref }}
cache_key_suffix: nightly
secrets: inherit

cleanup-nightly-cache:
name: Clean up nightly cache
if: ${{ always() }}
needs:
- wheels
# - wheels
- resolve-cudaq-main
- build-cudaq-main
- cudaq-main-all-libs
- cudaq-main-qec
- cudaq-main-solvers
- cudaq-main-docs
# - cudaq-main-all-libs
# - cudaq-main-qec
# - cudaq-main-solvers
# - cudaq-main-docs
- cudaq-main-wheels
runs-on: ubuntu-latest
permissions:
actions: write
Expand Down
Loading