Skip to content

Commit

Permalink
ci: add build CI (autowarefoundation#53)
Browse files Browse the repository at this point in the history
* 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
kenji-miyake committed Dec 1, 2021
1 parent 5b93b4f commit ebc58fb
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-and-test-pr.yaml
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 }}
29 changes: 29 additions & 0 deletions .github/workflows/build-and-test-scheduled.yaml
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 }}

0 comments on commit ebc58fb

Please sign in to comment.