Skip to content

Commit

Permalink
Update cudaq_cache.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bmhowe23 committed Jan 15, 2025
1 parent 7bea703 commit d2b7b78
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/cudaq_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
paths:
- '.github/workflows/cudaq_cache.yaml'
- '.github/actions/get-cudaq-build/**'
- '.github/actions/get-cudaq-wheels/**'
- '.cudaq_version'

concurrency:
Expand Down Expand Up @@ -50,3 +51,36 @@ jobs:
save-ccache: true
platform: ${{ matrix.platform }}

# This is similar to build-cudaq, but it builds the CUDA-Q wheels. It uses a
# CUDA-Q docker file to perform the build and therefore cannot run in a
# container context, so it cannot be done in the same build-cudaq job.
build-cudaq-wheels:
name: Build CUDAQ wheels
strategy:
fail-fast: false
matrix:
platform: ['amd64', 'arm64']
runs-on: ${{ startsWith(github.repository, 'NVIDIA/cudaqx') && format('linux-{0}-cpu32', matrix.platform) || 'ubuntu-latest' }}
permissions:
actions: write
contents: read
pull-requests: read
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 wheels
uses: ./.github/actions/get-cudaq-wheels
with:
repo: ${{ steps.get-cudaq-version.outputs.repo }}
ref: ${{ steps.get-cudaq-version.outputs.ref }}
token: ${{ secrets.CUDAQ_ACCESS_TOKEN }}
save-build: true
platform: ${{ matrix.platform }}

0 comments on commit d2b7b78

Please sign in to comment.