Skip to content

Commit a789b23

Browse files
committed
ci(check-build-depends): reuse build-and-test-reusable with jazzy-cuda
Replace the standalone check-build-depends workflow with a call to build-and-test-reusable.yaml using universe-devel-jazzy-cuda container. This ensures the check stays aligned with the main build pipeline and has all required dependencies (e.g. acados). Make codecov-token optional in the reusable workflow to support callers that don't need coverage uploads. Closes #12452 Signed-off-by: Mete Fatih Cırıt <mfc@autoware.org>
1 parent b3c2488 commit a789b23

2 files changed

Lines changed: 8 additions & 42 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ on:
5555
required: false
5656
secrets:
5757
codecov-token:
58-
required: true
58+
required: false
5959

6060
concurrency:
6161
group: ${{ inputs.concurrency-group }}
@@ -170,7 +170,7 @@ jobs:
170170
build-depends-repos: build_depends.repos
171171

172172
- name: Upload coverage to CodeCov
173-
if: ${{ steps.test.outputs.coverage-report-files != '' && inputs.upload-coverage }}
173+
if: ${{ steps.test.outputs.coverage-report-files != '' && inputs.upload-coverage && secrets.codecov-token != '' }}
174174
uses: codecov/codecov-action@v6
175175
with:
176176
files: ${{ steps.test.outputs.coverage-report-files }}

.github/workflows/check-build-depends.yaml

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,9 @@ on:
77

88
jobs:
99
check-build-depends:
10-
runs-on: ubuntu-22.04
11-
container: ${{ matrix.container }}
12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
rosdistro:
16-
- humble
17-
include:
18-
- rosdistro: humble
19-
container: ros:humble
20-
steps:
21-
- name: Check out repository
22-
uses: actions/checkout@v4
23-
24-
- name: Remove exec_depend
25-
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@v1
26-
27-
- name: Get self packages
28-
id: get-self-packages
29-
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1
30-
31-
- name: Prepare build_depends.repos file (main branch)
32-
if: ${{ github.event.pull_request.base.ref != 'humble' && github.event.pull_request.base.ref != 'jazzy' }}
33-
uses: ./.github/actions/combine-repos-action
34-
with:
35-
base_file: build_depends_stable.repos
36-
overlay_file: build_depends_nightly.repos
37-
output_file: build_depends.repos
38-
39-
- name: Prepare build_depends.repos file (humble/jazzy branch)
40-
if: ${{ github.event.pull_request.base.ref == 'humble' || github.event.pull_request.base.ref == 'jazzy' }}
41-
run: cp build_depends_stable.repos build_depends.repos
42-
shell: bash
43-
44-
- name: Build
45-
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
46-
with:
47-
rosdistro: ${{ matrix.rosdistro }}
48-
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
49-
build-depends-repos: build_depends.repos
10+
uses: ./.github/workflows/build-and-test-reusable.yaml
11+
with:
12+
rosdistro: jazzy
13+
container: ghcr.io/autowarefoundation/autoware:universe-devel-jazzy
14+
container-suffix: -cuda
15+
pull-ccache: true

0 commit comments

Comments
 (0)