build #2692
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| tags: | |
| - v[0-9][0-9].[0-9][0-9].[0-9][0-9] | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| description: | | |
| branch: git branch the workflow run targets. | |
| Required even when 'sha' is provided because it is also used for organizing artifacts. | |
| required: true | |
| type: string | |
| date: | |
| description: "date: Date (YYYY-MM-DD) this run is for. Used to organize artifacts produced by nightly builds" | |
| required: true | |
| type: string | |
| sha: | |
| description: "sha: full git commit SHA to check out" | |
| required: true | |
| type: string | |
| build_type: | |
| description: "build_type: one of [branch, nightly, pull-request]" | |
| type: string | |
| default: nightly | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| cpp-build: | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-build.yaml@main | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| date: ${{ inputs.date }} | |
| node_type: cpu16 | |
| script: ci/build_cpp.sh | |
| sha: ${{ inputs.sha }} | |
| sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN | |
| python-build: | |
| needs: [cpp-build] | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| date: ${{ inputs.date }} | |
| script: ci/build_python.sh | |
| sha: ${{ inputs.sha }} | |
| sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN | |
| upload-conda: | |
| needs: [cpp-build, python-build] | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/conda-upload-packages.yaml@main | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| date: ${{ inputs.date }} | |
| sha: ${{ inputs.sha }} | |
| docs-build: | |
| if: github.ref_type == 'branch' | |
| needs: python-build | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main | |
| with: | |
| arch: "amd64" | |
| branch: ${{ inputs.branch }} | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| container_image: "rapidsai/ci-conda:26.04-latest" | |
| date: ${{ inputs.date }} | |
| node_type: "gpu-l4-latest-1" | |
| script: "ci/build_docs.sh" | |
| sha: ${{ inputs.sha }} | |
| wheel-build-libraft: | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@main | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| node_type: cpu16 | |
| date: ${{ inputs.date }} | |
| script: ci/build_wheel_libraft.sh | |
| # build for every combination of arch and CUDA version, but only for the latest Python | |
| matrix_filter: group_by([.ARCH, (.CUDA_VER|split(".")|map(tonumber)|.[0])]) | map(max_by(.PY_VER|split(".")|map(tonumber))) | |
| package-name: libraft | |
| package-type: cpp | |
| sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN | |
| wheel-publish-libraft: | |
| needs: wheel-build-libraft | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-publish.yaml@main | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| date: ${{ inputs.date }} | |
| package-name: libraft | |
| package-type: cpp | |
| wheel-build-pylibraft: | |
| needs: wheel-build-libraft | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@main | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| node_type: cpu8 | |
| date: ${{ inputs.date }} | |
| script: ci/build_wheel_pylibraft.sh | |
| package-name: pylibraft | |
| package-type: python | |
| sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN | |
| wheel-publish-pylibraft: | |
| needs: wheel-build-pylibraft | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-publish.yaml@main | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| date: ${{ inputs.date }} | |
| package-name: pylibraft | |
| package-type: python | |
| wheel-build-raft-dask: | |
| needs: wheel-build-libraft | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@main | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| node_type: cpu8 | |
| date: ${{ inputs.date }} | |
| script: ci/build_wheel_raft_dask.sh | |
| package-name: raft_dask | |
| package-type: python | |
| sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN | |
| wheel-publish-raft-dask: | |
| needs: wheel-build-raft-dask | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-publish.yaml@main | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| date: ${{ inputs.date }} | |
| package-name: raft_dask | |
| package-type: python |