Skip to content

Commit

Permalink
feat(build-and-test-differential): skip cuda build when tag:require-c…
Browse files Browse the repository at this point in the history
…uda-build-and-test is not attached (autowarefoundation#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>
  • Loading branch information
yhisaki authored Aug 22, 2024
1 parent 6988233 commit ecc9586
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-and-test-differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,13 @@ jobs:
with:
label: tag:run-build-and-test-differential

make-sure-require-cuda-label-is-present:
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
with:
label: tag:require-cuda-build-and-test

build-and-test-differential:
needs: make-sure-label-is-present
needs: [make-sure-label-is-present, make-sure-require-cuda-label-is-present]
if: ${{ needs.make-sure-label-is-present.outputs.result == 'true' }}
runs-on: ${{ matrix.runner }}
container: ${{ matrix.container }}${{ matrix.container-suffix }}
Expand Down Expand Up @@ -57,6 +62,7 @@ jobs:
fetch-depth: ${{ env.PR_FETCH_DEPTH }}

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

0 comments on commit ecc9586

Please sign in to comment.