Enforce C++17 for benches #522
Workflow file for this run
This file contains 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
# This is the main workflow that runs on every PR and push to main | |
name: pr | |
defaults: | |
run: | |
shell: bash | |
on: | |
push: | |
branches: | |
- main | |
- "pull-request/[0-9]+" | |
# Only runs one instance of this workflow at a time for a given PR and cancels any in-progress runs when a new one starts. | |
concurrency: | |
group: ${{ github.workflow }}-on-${{ github.event_name }}-from-${{ github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
compute-matrix: | |
uses: ./.github/workflows/compute-matrix.yml | |
with: | |
matrix_file: "./ci/matrix.yaml" | |
matrix_type: "pull-request" | |
thrust: | |
name: Thrust CUDA${{ matrix.cuda_version }} ${{ matrix.compiler }} | |
needs: compute-matrix | |
uses: ./.github/workflows/dispatch-build-and-test.yml | |
strategy: | |
fail-fast: false | |
matrix: | |
cuda_version: ${{ fromJSON(needs.compute-matrix.outputs.CUDA_VERSIONS) }} | |
compiler: ${{ fromJSON(needs.compute-matrix.outputs.COMPILERS) }} | |
with: | |
per_cuda_compiler_matrix: ${{ toJSON(fromJSON(needs.compute-matrix.outputs.PER_CUDA_COMPILER_MATRIX)[ format('{0}-{1}', matrix.cuda_version, matrix.compiler) ]) }} | |
build_script: "./ci/build_thrust.sh" | |
test_script: "./ci/test_thrust.sh" | |
cub: | |
name: CUB CUDA${{ matrix.cuda_version }} ${{ matrix.compiler }} | |
needs: compute-matrix | |
uses: ./.github/workflows/dispatch-build-and-test.yml | |
strategy: | |
fail-fast: false | |
matrix: | |
cuda_version: ${{ fromJSON(needs.compute-matrix.outputs.CUDA_VERSIONS) }} | |
compiler: ${{ fromJSON(needs.compute-matrix.outputs.COMPILERS) }} | |
with: | |
per_cuda_compiler_matrix: ${{ toJSON(fromJSON(needs.compute-matrix.outputs.PER_CUDA_COMPILER_MATRIX)[ format('{0}-{1}', matrix.cuda_version, matrix.compiler) ]) }} | |
build_script: "./ci/build_cub.sh" | |
test_script: "./ci/test_cub.sh" | |
libcudacxx: | |
name: libcudacxx CUDA${{ matrix.cuda_version }} ${{ matrix.compiler }} | |
needs: compute-matrix | |
uses: ./.github/workflows/dispatch-build-and-test.yml | |
strategy: | |
fail-fast: false | |
matrix: | |
cuda_version: ${{ fromJSON(needs.compute-matrix.outputs.CUDA_VERSIONS) }} | |
compiler: ${{ fromJSON(needs.compute-matrix.outputs.COMPILERS) }} | |
with: | |
per_cuda_compiler_matrix: ${{ toJSON(fromJSON(needs.compute-matrix.outputs.PER_CUDA_COMPILER_MATRIX)[ format('{0}-{1}', matrix.cuda_version, matrix.compiler) ]) }} | |
build_script: "./ci/build_libcudacxx.sh" | |
test_script: "./ci/test_libcudacxx.sh" | |
# This job is the final job that runs after all other jobs and is used for branch protection status checks. | |
# See: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks | |
ci: | |
runs-on: ubuntu-latest | |
name: CI | |
needs: | |
- libcudacxx | |
- cub | |
- thrust | |
steps: | |
- run: echo "CI success" |