Skip to content

Revert pr9769

Revert pr9769 #7

name: build-test-tidy-pr
on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
require-label:
uses: autowarefoundation/autoware-github-actions/.github/workflows/require-label.yaml@v1
with:
label: run:build-and-test-differential
check-if-cuda-job-is-needed:
needs: require-label
runs-on: ubuntu-latest
outputs:
cuda_job_is_needed: ${{ steps.check.outputs.any_changed }}
steps:
- uses: actions/checkout@v4
- name: Check if relevant files changed
id: check
uses: tj-actions/changed-files@v45
with:
files: |
perception/**
sensing/**
- name: Output result
run: |
echo "CUDA job needed: ${{ steps.check.outputs.any_changed }}"
shell: bash
build-and-test-differential:
needs:
- require-label
uses: ./.github/workflows/build-and-test-differential.yaml

Check failure on line 45 in .github/workflows/build-test-tidy-pr.yaml

View workflow run for this annotation

GitHub Actions / build-test-tidy-pr

Invalid workflow file

The workflow is not valid. In .github/workflows/build-test-tidy-pr.yaml (Line: 45, Col: 11): Error from called workflow mitsudome-r/autoware.universe/.github/workflows/build-and-test-differential.yaml@7b72038d1086b14598191c9636304236d9497817 (Line: 35, Col: 9): Unrecognized named-value: 'run-condition'. Located at position 1 within expression: run-condition
with:
container: ghcr.io/autowarefoundation/autoware:universe-devel
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
build-and-test-differential-cuda:
needs: check-if-cuda-job-is-needed
uses: ./.github/workflows/build-and-test-differential.yaml
with:
container: ghcr.io/autowarefoundation/autoware:universe-devel
container-suffix: -cuda
skip: ${{ needs.check-if-cuda-job-is-needed.outputs.cuda_job_is_needed == 'true' }}
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
clang-tidy-differential:
needs:
- check-if-cuda-job-is-needed
- build-and-test-differential
if: ${{ needs.check-if-cuda-job-is-needed.outputs.cuda_job_is_needed == 'false' }}
uses: ./.github/workflows/clang-tidy-differential.yaml
with:
container: ghcr.io/autowarefoundation/autoware:universe-devel
clang-tidy-differential-cuda:
needs:
- build-and-test-differential-cuda
uses: ./.github/workflows/clang-tidy-differential.yaml
with:
container: ghcr.io/autowarefoundation/autoware:universe-devel
container-suffix: -cuda