Skip to content

Commit

Permalink
ci: fix action for build-test-differential and check-build-depends fo…
Browse files Browse the repository at this point in the history
…r beta/v0.3.x (#291)

* tmp: change colcon-build action

* test commit

* fix OS version

* Revert "fix OS version"

This reverts commit c56a230.

* change container version

* fix tier4_autoware_msgs repos

* fix

* use commit hash

* fix for clang-tidy

* Update common/tier4_state_rviz_plugin/src/autoware_state_panel.hpp
  • Loading branch information
h-ohta authored Feb 28, 2023
1 parent a74f254 commit 2cd9047
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build-and-test-differential.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
build-and-test-differential:
runs-on: ubuntu-latest
container: ghcr.io/autowarefoundation/autoware-universe:latest
container: ghcr.io/autowarefoundation/autoware-universe:galactic-latest
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
Expand All @@ -25,20 +25,22 @@ jobs:

- name: Build
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
uses: autowarefoundation/autoware-github-actions/colcon-build@a7cc2c1ce6052f395e5800a0fb6e6221421bf30a
with:
rosdistro: galactic
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
build-depends-repos: build_depends.repos
include-eol-distros: true

- name: Test
id: test
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
uses: autowarefoundation/autoware-github-actions/colcon-test@v1
uses: autowarefoundation/autoware-github-actions/colcon-test@a7cc2c1ce6052f395e5800a0fb6e6221421bf30a
with:
rosdistro: galactic
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
build-depends-repos: build_depends.repos
include-eol-distros: true

- name: Upload coverage to CodeCov
if: ${{ steps.test.outputs.coverage-report-files != '' }}
Expand Down Expand Up @@ -68,9 +70,10 @@ jobs:

- name: Run clang-tidy
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }}
uses: autowarefoundation/autoware-github-actions/clang-tidy@v1
uses: autowarefoundation/autoware-github-actions/clang-tidy@a7cc2c1ce6052f395e5800a0fb6e6221421bf30a
with:
rosdistro: galactic
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/main/.clang-tidy
build-depends-repos: build_depends.repos
include-eol-distros: true
5 changes: 3 additions & 2 deletions .github/workflows/check-build-depends.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
check-build-depends:
runs-on: ubuntu-latest
container: ghcr.io/autowarefoundation/autoware-universe:latest
container: ghcr.io/autowarefoundation/autoware-universe:galactic-latest
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1
Expand All @@ -24,8 +24,9 @@ jobs:
uses: autowarefoundation/autoware-github-actions/get-self-packages@v1

- name: Build
uses: autowarefoundation/autoware-github-actions/colcon-build@v1
uses: autowarefoundation/autoware-github-actions/colcon-build@a7cc2c1ce6052f395e5800a0fb6e6221421bf30a
with:
rosdistro: galactic
target-packages: ${{ steps.get-self-packages.outputs.self-packages }}
build-depends-repos: build_depends.repos
include-eol-distros: true
4 changes: 2 additions & 2 deletions build_depends.repos
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ repositories:
# universe
universe/tier4_autoware_msgs:
type: git
url: https://github.com/tier4/AutowareArchitectureProposal_msgs.git # TODO(Tier IV): Rename to tier4/tier4_autoware_msgs
version: tier4/universe
url: https://github.com/tier4/tier4_autoware_msgs.git
version: a624d255107fa724cf90967c5dcc09463b1d1c73
universe/vendor/grid_map:
type: git
url: https://github.com/ANYbotics/grid_map.git
Expand Down

0 comments on commit 2cd9047

Please sign in to comment.