Skip to content

Commit f08ff04

Browse files
committed
🔧 Update CI conditions to include MLIR tests
Signed-off-by: Lukas Burgholzer <burgholzer@me.com>
1 parent 3e5a22b commit f08ff04

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
cpp-tests-ubuntu:
2020
name: 🇨‌ Test 🐧
2121
needs: change-detection
22-
if: fromJSON(needs.change-detection.outputs.run-cpp-tests) && !contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
22+
if: (fromJSON(needs.change-detection.outputs.run-cpp-tests) || fromJSON(needs.change-detection.outputs.run-mlir)) && !contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
2323
strategy:
2424
fail-fast: false
2525
matrix:
@@ -41,7 +41,7 @@ jobs:
4141
cpp-tests-macos:
4242
name: 🇨‌ Test 🍎
4343
needs: change-detection
44-
if: fromJSON(needs.change-detection.outputs.run-cpp-tests) && !contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
44+
if: (fromJSON(needs.change-detection.outputs.run-cpp-tests) || fromJSON(needs.change-detection.outputs.run-mlir)) && !contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
4545
strategy:
4646
fail-fast: false
4747
matrix:
@@ -64,7 +64,7 @@ jobs:
6464
cpp-tests-windows:
6565
name: 🇨‌ Test 🏁
6666
needs: change-detection
67-
if: fromJSON(needs.change-detection.outputs.run-cpp-tests) && !contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
67+
if: (fromJSON(needs.change-detection.outputs.run-cpp-tests) || fromJSON(needs.change-detection.outputs.run-mlir)) && !contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
6868
strategy:
6969
fail-fast: false
7070
matrix:
@@ -87,7 +87,7 @@ jobs:
8787
cpp-tests-extensive-ubuntu:
8888
name: 🇨‌ Test (Extensive) 🐧
8989
needs: change-detection
90-
if: fromJSON(needs.change-detection.outputs.run-cpp-tests) && github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
90+
if: (fromJSON(needs.change-detection.outputs.run-cpp-tests) || fromJSON(needs.change-detection.outputs.run-mlir)) && github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
9191
strategy:
9292
fail-fast: false
9393
matrix:
@@ -106,7 +106,7 @@ jobs:
106106
cpp-tests-extensive-macos:
107107
name: 🇨‌ Test (Extensive) 🍎
108108
needs: change-detection
109-
if: fromJSON(needs.change-detection.outputs.run-cpp-tests) && github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
109+
if: (fromJSON(needs.change-detection.outputs.run-cpp-tests) || fromJSON(needs.change-detection.outputs.run-mlir)) && github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
110110
strategy:
111111
fail-fast: false
112112
matrix:
@@ -126,7 +126,7 @@ jobs:
126126
cpp-tests-extensive-windows:
127127
name: 🇨‌ Test (Extensive) 🏁
128128
needs: change-detection
129-
if: fromJSON(needs.change-detection.outputs.run-cpp-tests) && github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
129+
if: (fromJSON(needs.change-detection.outputs.run-cpp-tests) || fromJSON(needs.change-detection.outputs.run-mlir)) && github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
130130
strategy:
131131
fail-fast: false
132132
matrix:
@@ -144,7 +144,7 @@ jobs:
144144
cpp-coverage:
145145
name: 🇨‌ Coverage
146146
needs: change-detection
147-
if: fromJSON(needs.change-detection.outputs.run-cpp-tests)
147+
if: fromJSON(needs.change-detection.outputs.run-cpp-tests) || fromJSON(needs.change-detection.outputs.run-mlir)
148148
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-cpp-coverage.yml@mlir-ready-cpp-workflows # v1.17.7
149149
with:
150150
setup-mlir: true
@@ -271,15 +271,15 @@ jobs:
271271
with:
272272
allowed-skips: >-
273273
${{
274-
fromJSON(needs.change-detection.outputs.run-cpp-tests) && !contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
274+
(fromJSON(needs.change-detection.outputs.run-cpp-tests) || fromJSON(needs.change-detection.outputs.run-mlir)) && !contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
275275
&& '' || 'cpp-tests-ubuntu,cpp-tests-macos,cpp-tests-windows,'
276276
}}
277277
${{
278-
fromJSON(needs.change-detection.outputs.run-cpp-tests) && github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
278+
(fromJSON(needs.change-detection.outputs.run-cpp-tests) || fromJSON(needs.change-detection.outputs.run-mlir)) && github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'extensive-cpp-ci')
279279
&& '' || 'cpp-tests-extensive-ubuntu,cpp-tests-extensive-macos,cpp-tests-extensive-windows,'
280280
}}
281281
${{
282-
fromJSON(needs.change-detection.outputs.run-cpp-tests)
282+
fromJSON(needs.change-detection.outputs.run-cpp-tests) || fromJSON(needs.change-detection.outputs.run-mlir)
283283
&& '' || 'cpp-coverage,'
284284
}}
285285
${{

0 commit comments

Comments
 (0)