Add support for nvcc-specific matrix. #15
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
name: Compute the matrix for a given matrix type from the specified matrix file | ||
on: | ||
workflow_call: | ||
inputs: | ||
matrix_file: | ||
type: string | ||
required: true | ||
matrix_type: | ||
description: "The desired matrix type. Currently, only 'pull-request' and 'nightly' are supported." | ||
type: string | ||
required: true | ||
outputs: | ||
FULL_MATRIX: | ||
description: "The full matrix of build configurations for the given matrix type." | ||
value: ${{ jobs.compute-matrix.outputs.FULL_MATRIX }} | ||
CUDA_VERSIONS: | ||
description: "The unique CUDA versions in the full matrix." | ||
value: ${{ jobs.compute-matrix.outputs.CUDA_VERSIONS }} | ||
COMPILERS: | ||
description: "The unique compilers in the full matrix." | ||
value: ${{ jobs.compute-matrix.outputs.COMPILERS }} | ||
PER_CUDA_COMPILER_MATRIX: | ||
description: "The matrix of build configurations for each CUDA version and compiler." | ||
value: ${{ jobs.compute-matrix.outputs.PER_CUDA_COMPILER_MATRIX }} | ||
defaults: | ||
run: | ||
shell: bash | ||
env: | ||
MATRIX_TYPE: ${{ inputs.matrix_type}} | ||
MATRIX_FILE: ${{ inputs.matrix_file }} | ||
jobs: | ||
compute-matrix: | ||
name: ${{inputs.matrix_type}} | ||
runs-on: ubuntu-latest | ||
outputs: | ||
FULL_MATRIX: ${{ steps.compute-matrix.outputs.FULL_MATRIX }} | ||
CUDA_VERSIONS: ${{ steps.compute-matrix.outputs.CUDA_VERSIONS }} | ||
COMPILERS: ${{ steps.compute-matrix.outputs.COMPILERS }} | ||
PER_CUDA_COMPILER_MATRIX: ${{ steps.compute-matrix.outputs.PER_CUDA_COMPILER_MATRIX }} | ||
steps: |