forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add build CI (autowarefoundation#53)
* ci: add build-and-test-pr Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * ci: add build-and-test-scheduled Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * ci: add clang-tidy in build-and-test-pr Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp> * ci: add ARM64 build in build-and-test-scheduled Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
- Loading branch information
1 parent
531e384
commit 55c86bb
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: build-and-test-pr | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
get-modified-packages: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-get-modified-packages.yaml@tier4/proposal | ||
with: | ||
script-ref: tier4/proposal | ||
|
||
get-modified-source-files: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-get-modified-source-files.yaml@tier4/proposal | ||
|
||
build-and-test: | ||
needs: get-modified-packages | ||
if: ${{ needs.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-colcon-build-and-test.yaml@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
build-depends-repos: build_depends.repos | ||
target-packages: ${{ needs.get-modified-packages.outputs.modified-packages }} | ||
|
||
clang-tidy: | ||
needs: [get-modified-source-files, build-and-test] | ||
if: ${{ needs.get-modified-source-files.outputs.modified-source-files != '' }} | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-clang-tidy.yaml@tier4/proposal | ||
with: | ||
script-ref: tier4/proposal | ||
rosdistro: galactic | ||
build-depends-repos: build_depends.repos | ||
target-files: ${{ needs.get-modified-source-files.outputs.modified-source-files }} | ||
compile-commands-hash: ${{ needs.build-and-test.outputs.compile-commands-hash }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: build-and-test-scheduled | ||
|
||
on: | ||
schedule: | ||
- cron: "0 19 * * *" # run at 4 AM JST | ||
workflow_dispatch: | ||
|
||
jobs: | ||
get-self-packages: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-get-self-packages.yaml@tier4/proposal | ||
|
||
build-and-test: | ||
needs: get-self-packages | ||
if: ${{ needs.get-self-packages.outputs.self-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-colcon-build-and-test.yaml@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
build-depends-repos: build_depends.repos | ||
target-packages: ${{ needs.get-self-packages.outputs.self-packages }} | ||
|
||
build-and-test-arm64: | ||
needs: get-self-packages | ||
if: ${{ needs.get-self-packages.outputs.self-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/reusable-colcon-build-and-test.yaml@tier4/proposal | ||
with: | ||
os: ARM64 | ||
rosdistro: galactic | ||
build-depends-repos: build_depends.repos | ||
target-packages: ${{ needs.get-self-packages.outputs.self-packages }} |