Skip to content

Commit 3a264b3

Browse files
authored
[CI] Skip AWS job if nothing to run there (#6580)
Also fixes similar potential issue with lts test suite.
1 parent cc781fc commit 3a264b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/sycl_linux_build_and_test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ on:
3939
lts_matrix:
4040
type: string
4141
required: false
42-
default: ""
42+
default: "[]"
4343
lts_aws_matrix:
4444
type: string
4545
required: false
46-
default: ""
46+
default: "[]"
4747
lts_cmake_extra_args:
4848
type: string
4949
required: false
@@ -162,7 +162,7 @@ jobs:
162162
aws-start:
163163
name: Start AWS
164164
needs: build
165-
if: ${{ inputs.lts_aws_matrix != '' }}
165+
if: ${{ inputs.lts_aws_matrix != '[]' }}
166166
runs-on: ubuntu-latest
167167
environment: aws
168168
steps:
@@ -183,7 +183,7 @@ jobs:
183183

184184
llvm_test_suite:
185185
needs: [build, aws-start]
186-
if: ${{ !failure() && inputs.lts_matrix != '' }}
186+
if: ${{ !failure() && inputs.lts_matrix != '[]' }}
187187
strategy:
188188
fail-fast: false
189189
max-parallel: ${{ inputs.max_parallel }}
@@ -234,7 +234,7 @@ jobs:
234234
aws-stop:
235235
name: Stop AWS
236236
needs: [ aws-start, llvm_test_suite ]
237-
if: ${{ always() && inputs.lts_aws_matrix != '' }}
237+
if: ${{ always() && inputs.lts_aws_matrix != '[]' }}
238238
runs-on: ubuntu-latest
239239
environment: aws
240240
steps:

0 commit comments

Comments
 (0)