build #168
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: | |
| - "branch-*" | |
| tags: | |
| - v[0-9][0-9].[0-9][0-9].[0-9][0-9] | |
| workflow_dispatch: | |
| inputs: | |
| branch: | |
| required: true | |
| type: string | |
| date: | |
| required: true | |
| type: string | |
| sha: | |
| required: true | |
| type: string | |
| build_type: | |
| type: string | |
| default: nightly | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| cpp-build: | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-build.yaml@branch-25.08 | |
| with: | |
| matrix_filter: map(select((.CUDA_VER | startswith("12")))) | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| date: ${{ inputs.date }} | |
| sha: ${{ inputs.sha }} | |
| script: ci/build_cpp.sh | |
| python-build: | |
| needs: [cpp-build] | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@branch-25.08 | |
| with: | |
| matrix_filter: map(select((.CUDA_VER | startswith("12")) and .PY_VER != "3.13")) | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| date: ${{ inputs.date }} | |
| sha: ${{ inputs.sha }} | |
| script: ci/build_python.sh | |
| upload-conda: | |
| needs: [cpp-build, python-build] | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/conda-upload-packages.yaml@branch-25.08 | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| date: ${{ inputs.date }} | |
| sha: ${{ inputs.sha }} | |
| wheel-build-cuopt-mps-parser: | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@branch-25.08 | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| date: ${{ inputs.date }} | |
| script: ci/build_wheel_cuopt_mps_parser.sh | |
| matrix_filter: map(select((.CUDA_VER | startswith("12")))) | |
| package-name: cuopt_mps_parser | |
| package-type: python | |
| append-cuda-suffix: false | |
| wheel-publish-cuopt-mps-parser: | |
| needs: wheel-build-cuopt-mps-parser | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-publish.yaml@branch-25.08 | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| date: ${{ inputs.date }} | |
| package-name: cuopt_mps_parser | |
| package-type: python | |
| wheel-build-libcuopt: | |
| needs: wheel-build-cuopt-mps-parser | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@branch-25.08 | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| date: ${{ inputs.date }} | |
| script: ci/build_wheel_libcuopt.sh | |
| package-name: libcuopt | |
| package-type: cpp | |
| matrix_filter: map(select((.CUDA_VER | startswith("12")) and .PY_VER == "3.12")) | |
| wheel-publish-libcuopt: | |
| needs: wheel-build-libcuopt | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-publish.yaml@branch-25.08 | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| date: ${{ inputs.date }} | |
| package-name: libcuopt | |
| package-type: cpp | |
| wheel-build-cuopt: | |
| needs: [wheel-build-cuopt-mps-parser, wheel-build-libcuopt] | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@branch-25.08 | |
| with: | |
| matrix_filter: map(select((.CUDA_VER | startswith("12")))) | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| date: ${{ inputs.date }} | |
| script: ci/build_wheel_cuopt.sh | |
| package-name: cuopt | |
| package-type: python | |
| wheel-publish-cuopt: | |
| needs: wheel-build-cuopt | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-publish.yaml@branch-25.08 | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| date: ${{ inputs.date }} | |
| package-name: cuopt | |
| package-type: python | |
| wheel-build-cuopt-server: | |
| needs: wheel-build-cuopt | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@branch-25.08 | |
| with: | |
| matrix_filter: map(select((.CUDA_VER | startswith("12")))) | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| date: ${{ inputs.date }} | |
| script: ci/build_wheel_cuopt_server.sh | |
| package-name: cuopt_server | |
| package-type: python | |
| wheel-publish-cuopt-server: | |
| needs: wheel-build-cuopt-server | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-publish.yaml@branch-25.08 | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| date: ${{ inputs.date }} | |
| package-name: cuopt_server | |
| package-type: python | |
| #docs-build: | |
| # if: inputs.build_type == 'nightly' || github.ref_type == 'branch' | |
| # needs: [python-build] | |
| # secrets: inherit | |
| # uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@branch-25.08 | |
| # with: | |
| # build_type: ${{ inputs.build_type || 'branch' }} | |
| # node_type: "gpu-l4-latest-1" | |
| # sha: ${{ inputs.sha }} | |
| # branch: ${{ inputs.branch }} | |
| # date: ${{ inputs.date }} | |
| # arch: amd64 | |
| # container_image: rapidsai/ci-conda:cuda11.8.0-ubuntu22.04-py3.10 | |
| # run_script: ci/build_docs.sh | |
| wheel-build-cuopt-sh-client: | |
| needs: wheel-build-cuopt | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@branch-25.08 | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| date: ${{ inputs.date }} | |
| script: ci/build_wheel_cuopt_sh_client.sh | |
| matrix_filter: map(select((.CUDA_VER | startswith("12")))) | |
| package-name: cuopt_sh_client | |
| package-type: python | |
| append-cuda-suffix: false | |
| wheel-publish-cuopt-sh-client: | |
| needs: wheel-build-cuopt-sh-client | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-publish.yaml@branch-25.08 | |
| with: | |
| build_type: ${{ inputs.build_type || 'branch' }} | |
| branch: ${{ inputs.branch }} | |
| sha: ${{ inputs.sha }} | |
| date: ${{ inputs.date }} | |
| package-name: cuopt_sh_client | |
| package-type: python | |
| service-container: | |
| if: inputs.build_type == 'nightly' | |
| needs: [wheel-build-cuopt, wheel-build-cuopt-server] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code repo | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ inputs.sha }} | |
| fetch-depth: 0 # unshallow fetch for setuptools-scm | |
| persist-credentials: false | |
| - name: build service | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| gh workflow run service_nightly.yaml \ | |
| -f branch=${{ inputs.branch }} \ | |
| -f sha=${{ inputs.sha }} \ | |
| -f date=${{ inputs.date }} \ | |
| -f build_type=${{ inputs.build_type }} |