Use std::holds_alternative instead of try-catch for COMPRESSION tag #1057
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: pr | |
| on: | |
| push: | |
| branches: | |
| - "pull-request/[0-9]+" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pr-builder: | |
| needs: | |
| - checks | |
| - conda-cpp-build | |
| - conda-python-build | |
| - conda-python-tests | |
| - docs-build | |
| - wheel-build | |
| - wheel-tests | |
| - telemetry-setup | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/pr-builder.yaml@main | |
| telemetry-setup: | |
| runs-on: ubuntu-latest | |
| continue-on-error: true | |
| env: | |
| OTEL_SERVICE_NAME: "pr-cucim" | |
| steps: | |
| - name: Telemetry setup | |
| # This gate is here and not at the job level because we need the job to not be skipped, | |
| # since other jobs depend on it. | |
| if: ${{ vars.TELEMETRY_ENABLED == 'true' }} | |
| uses: rapidsai/shared-actions/telemetry-dispatch-stash-base-env-vars@main | |
| checks: | |
| secrets: inherit | |
| needs: telemetry-setup | |
| uses: rapidsai/shared-workflows/.github/workflows/checks.yaml@main | |
| with: | |
| ignored_pr_jobs: telemetry-summarize | |
| conda-cpp-build: | |
| needs: checks | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/conda-cpp-build.yaml@main | |
| with: | |
| build_type: pull-request | |
| script: ci/build_cpp.sh | |
| conda-python-build: | |
| needs: conda-cpp-build | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/conda-python-build.yaml@main | |
| with: | |
| build_type: pull-request | |
| script: ci/build_python.sh | |
| conda-python-tests: | |
| needs: conda-python-build | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/conda-python-tests.yaml@main | |
| with: | |
| build_type: pull-request | |
| script: ci/test_python.sh | |
| docs-build: | |
| needs: conda-python-build | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/custom-job.yaml@main | |
| with: | |
| build_type: pull-request | |
| node_type: "gpu-l4-latest-1" | |
| arch: "amd64" | |
| container_image: "rapidsai/ci-conda:26.02-latest" | |
| script: "ci/build_docs.sh" | |
| wheel-build: | |
| needs: checks | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-build.yaml@main | |
| with: | |
| build_type: pull-request | |
| script: ci/build_wheel.sh | |
| package-name: cucim | |
| package-type: python | |
| wheel-tests: | |
| needs: wheel-build | |
| secrets: inherit | |
| uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@main | |
| with: | |
| build_type: pull-request | |
| script: ci/test_wheel.sh | |
| telemetry-summarize: | |
| # This job must use a self-hosted runner to record telemetry traces. | |
| runs-on: linux-amd64-cpu4 | |
| needs: pr-builder | |
| if: ${{ vars.TELEMETRY_ENABLED == 'true' && !cancelled() }} | |
| continue-on-error: true | |
| steps: | |
| - name: Telemetry summarize | |
| uses: rapidsai/shared-actions/telemetry-dispatch-summarize@main | |
| env: | |
| GH_TOKEN: ${{ github.token }} |