Skip to content

Commit ecc9586

Browse files
authored
feat(build-and-test-differential): skip cuda build when tag:require-cuda-build-and-test is not attached (#8562)
* feat(build-and-test-differential): skip cuda build when tag:require-cuda-build-and-test is not attached Signed-off-by: Y.Hisaki <yhisaki31@gmail.com> * fix miss Signed-off-by: Y.Hisaki <yhisaki31@gmail.com> * for debugging Signed-off-by: Y.Hisaki <yhisaki31@gmail.com> * fix bug Signed-off-by: Y.Hisaki <yhisaki31@gmail.com> * remove debug code Signed-off-by: Y.Hisaki <yhisaki31@gmail.com> --------- Signed-off-by: Y.Hisaki <yhisaki31@gmail.com>
1 parent 6988233 commit ecc9586

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-and-test-differential.yaml

+7-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@ jobs:
2222
with:
2323
label: tag:run-build-and-test-differential
2424

25+
make-sure-require-cuda-label-is-present:
26+
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
27+
with:
28+
label: tag:require-cuda-build-and-test
29+
2530
build-and-test-differential:
26-
needs: make-sure-label-is-present
31+
needs: [make-sure-label-is-present, make-sure-require-cuda-label-is-present]
2732
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
2833
runs-on: ${{ matrix.runner }}
2934
container: ${{ matrix.container }}${{ matrix.container-suffix }}
@@ -57,6 +62,7 @@ jobs:
5762
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
5863

5964
- name: Run build-and-test-differential action
65+
if: ${{ !(matrix.container-suffix == '-cuda') || needs.make-sure-require-cuda-label-is-present.outputs.result == 'true' }}
6066
uses: ./.github/actions/build-and-test-differential
6167
with:
6268
rosdistro: ${{ matrix.rosdistro }}

0 commit comments

Comments
 (0)