File tree Expand file tree Collapse file tree 2 files changed +57
-2
lines changed Expand file tree Collapse file tree 2 files changed +57
-2
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,47 @@ name: "GitHub CPU Auto-test Ubuntu 22.04"
55# 2. when changes are merged into the main branch (via a pull request)
66on :
77 workflow_call
8+ inputs :
9+ precision :
10+ required : true
11+ type : choice
12+ default : ' ALL'
13+ build_type :
14+ required : true
15+ type : choice
16+ default : ' ALL'
817
918# Below are jobs, each of which runs sequentially.
1019jobs :
20+ define_matrix :
21+ runs-on : ubuntu-22.04
22+ steps :
23+ - name : set build type
24+ env :
25+ BUILD_TYPE : [Debug, Release]
26+ if : $${{ contains(github.event.inputs.build_type, 'Debug') }}
27+ env :
28+ BUILD_TYPE : [Debug]
29+ if : $${{ contains(github.event.inputs.build_type, 'Release') }}
30+ env :
31+ BUILD_TYPE : [Release]
32+ - name : set precision
33+ env :
34+ PRECISION : [single, double]
35+ if : ${{ contains(github.event.inputs.precision, 'single') }}
36+ env :
37+ PRECISION : [single]
38+ if : ${{ contains(github.event.inputs.precision, 'double') }}
39+ env :
40+ PRECISION : [double]
1141 # This job builds the box model and runs our test suite.
1242 build_test_coverage :
1343 # A build matrix storing all desired configurations.
1444 strategy :
1545 matrix :
1646 os : [ubuntu-22.04] # , macos-latest]
17- build-type : [Debug, Release]
18- fp-precision : [single, double]
47+ build-type : ${{ env.BUILD_TYPE }}
48+ fp-precision : ${{ env.PRECISION }}
1949
2050 runs-on : ${{ matrix.os }}
2151
Original file line number Diff line number Diff line change 2424 description : ' Test Machine Architecture'
2525 required : true
2626 type : choice
27+ default : ' GPU-NVIDIA_H100'
2728 options :
2829 - GPU-NVIDIA_H100
2930 - CPU-Ubuntu_22-04
3031 - ALL
32+ precision :
33+ description : ' Floating-point Precision'
34+ required : true
35+ type : choice
36+ default : ' double'
37+ options :
38+ - double
39+ - single
40+ - ALL
41+ build_type :
42+ description : ' Build Type'
43+ required : true
44+ type : choice
45+ default : ' Debug'
46+ options :
47+ - Debug
48+ - Release
49+ - ALL
3150
3251 # Add schedule trigger for nightly runs at midnight MT (Standard Time)
3352 schedule :
@@ -59,10 +78,16 @@ jobs:
5978 manual-gpu_cuda :
6079 if : ${{ contains(github.event.inputs.architecture, 'GPU-NVIDIA_H100') ||
6180 contains(github.event.inputs.architecture, 'ALL') }}
81+ # env:
82+ # PRECISION: ${{ github.event.inputs.precision }}
83+ # BUILD_TYPE: ${{ github.event.inputs.build_type }}
6284 uses :
6385 " ./.github/workflows/at2_gcc-cuda.yml"
6486 manual-cpu_gh :
6587 if : ${{ contains(github.event.inputs.architecture, 'CPU-Ubuntu_22-04') ||
6688 contains(github.event.inputs.architecture, 'ALL') }}
89+ # env:
90+ # PRECISION: ${{ github.event.inputs.precision }}
91+ # BUILD_TYPE: ${{ github.event.inputs.build_type }}
6792 uses :
6893 ./.github/workflows/gh_gcc-cpu.yml
You can’t perform that action at this time.
0 commit comments