Skip to content

Commit 78bd945

Browse files
ci:single-complex label and test_single_complex CI input
1 parent 2f3834d commit 78bd945

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/core.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ on:
2727
description: Whether to test a single-precision (fp32) build
2828
type: boolean
2929
required: true
30+
test_single_complex:
31+
description: Whether to test a single-precision complex build
32+
type: boolean
33+
required: true
3034
test_cuda:
3135
description: Whether to test using CUDA-enabled PETSc
3236
type: boolean
@@ -62,6 +66,10 @@ on:
6266
description: Whether to test a single-precision (fp32) build
6367
type: boolean
6468
required: true
69+
test_single_complex:
70+
description: Whether to test a single-precision complex build
71+
type: boolean
72+
required: true
6573
test_cuda:
6674
description: Whether to test using CUDA-enabled PETSc
6775
type: boolean
@@ -280,6 +288,14 @@ jobs:
280288
matrix="$arch"
281289
fi
282290
fi
291+
if [ ${{ inputs.test_single_complex }} == 'true' ]; then
292+
arch='{"scalar_type": "single-complex", "gpu": "none"}'
293+
if [ "$matrix" ]; then
294+
matrix="$matrix, $arch"
295+
else
296+
matrix="$arch"
297+
fi
298+
fi
283299
if [ ${{ inputs.test_cuda }} == 'true' ]; then
284300
arch='{"scalar_type": "default", "gpu": "cuda"}'
285301
if [ "$matrix" ]; then

.github/workflows/pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
# is on the PR, otherwise do nothing.
2525
test_complex: ${{ contains(github.event.pull_request.labels.*.name, 'ci:complex') }}
2626
test_single: ${{ contains(github.event.pull_request.labels.*.name, 'ci:single') }}
27+
test_single_complex: ${{ contains(github.event.pull_request.labels.*.name, 'ci:single-complex') }}
2728
test_cuda: ${{ contains(github.event.pull_request.labels.*.name, 'ci:cuda') }}
2829
test_macos: ${{ contains(github.event.pull_request.labels.*.name, 'ci:macos') }}
2930
secrets: inherit

.github/workflows/push.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
base_ref: ${{ github.ref_name }}
1616
test_complex: true
1717
test_single: true
18+
test_single_complex: true
1819
test_cuda: true
1920
test_macos: true
2021
deploy_website: true

0 commit comments

Comments
 (0)