-
Notifications
You must be signed in to change notification settings - Fork 156
45 lines (40 loc) · 1.52 KB
/
compute-nvcc-matrix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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: