forked from autowarefoundation/autoware.universe
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: GitHub <[email protected]> Co-authored-by: kenji-miyake <[email protected]>
- Loading branch information
1 parent
03fee85
commit 59f0f77
Showing
4 changed files
with
180 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
.github/workflows/build-and-test-differential-self-hosted.yaml
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,46 @@ | ||
name: build-and-test-differential-self-hosted | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- labeled | ||
workflow_dispatch: | ||
|
||
jobs: | ||
prevent-no-label-execution: | ||
uses: autowarefoundation/autoware-github-actions/.github/workflows/prevent-no-label-execution.yaml@tier4/proposal | ||
with: | ||
label: ARM64 | ||
|
||
build-and-test-differential-self-hosted: | ||
needs: prevent-no-label-execution | ||
if: ${{ needs.prevent-no-label-execution.outputs.run == 'true' }} | ||
runs-on: [self-hosted, linux, ARM64] | ||
container: ghcr.io/autowarefoundation/autoware-universe:latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@tier4/proposal | ||
|
||
- name: Register AutonomouStuff repository | ||
uses: autowarefoundation/autoware-github-actions/register-autonomoustuff-repository@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
|
||
- name: Get modified packages | ||
id: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/get-modified-packages@tier4/proposal | ||
|
||
- name: Build and test | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
build-depends-repos: build_depends.repos |
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,85 @@ | ||
name: build-and-test-differential | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build-and-test-differential: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/autowarefoundation/autoware-universe:latest | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
|
||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@tier4/proposal | ||
|
||
- name: Register AutonomouStuff repository | ||
uses: autowarefoundation/autoware-github-actions/register-autonomoustuff-repository@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
|
||
- name: Get modified packages | ||
id: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/get-modified-packages@tier4/proposal | ||
|
||
- name: Build and test | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
build-depends-repos: build_depends.repos | ||
|
||
- name: Check the existence of coverage files | ||
id: check-file-existence | ||
uses: autowarefoundation/autoware-github-actions/check-file-existence@tier4/proposal | ||
with: | ||
files: | | ||
lcov/total_coverage.info | ||
coveragepy/.coverage | ||
condition: or | ||
|
||
- name: Upload coverage to CodeCov | ||
if: ${{ steps.check-file-existence.outputs.exists == 'true' }} | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
files: lcov/total_coverage.info,coveragepy/.coverage | ||
fail_ci_if_error: false | ||
verbose: true | ||
|
||
clang-tidy-differential: | ||
runs-on: ubuntu-latest | ||
container: ros:galactic | ||
needs: build-and-test-differential | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@tier4/proposal | ||
|
||
- name: Register AutonomouStuff repository | ||
uses: autowarefoundation/autoware-github-actions/register-autonomoustuff-repository@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
|
||
- name: Get modified packages | ||
id: get-modified-packages | ||
uses: autowarefoundation/autoware-github-actions/get-modified-packages@tier4/proposal | ||
|
||
- name: Run clang-tidy | ||
if: ${{ steps.get-modified-packages.outputs.modified-packages != '' }} | ||
uses: autowarefoundation/autoware-github-actions/clang-tidy@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }} | ||
clang-tidy-config-url: https://raw.githubusercontent.com/autowarefoundation/autoware/tier4/proposal/.clang-tidy | ||
build-depends-repos: build_depends.repos |
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-self-hosted | ||
|
||
on: | ||
schedule: | ||
- cron: 0 19 * * * # run at 4 AM JST | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-test-self-hosted: | ||
runs-on: [self-hosted, linux, ARM64] | ||
container: ghcr.io/autowarefoundation/autoware-universe:latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Remove exec_depend | ||
uses: autowarefoundation/autoware-github-actions/remove-exec-depend@tier4/proposal | ||
|
||
- name: Register AutonomouStuff repository | ||
uses: autowarefoundation/autoware-github-actions/register-autonomoustuff-repository@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
|
||
- name: Get self packages | ||
id: get-self-packages | ||
uses: autowarefoundation/autoware-github-actions/get-self-packages@tier4/proposal | ||
|
||
- name: Build and test | ||
uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal | ||
with: | ||
rosdistro: galactic | ||
target-packages: ${{ steps.get-self-packages.outputs.self-packages }} | ||
build-depends-repos: build_depends.repos |
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,16 @@ | ||
name: spell-check-differential | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
spell-check-differential: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run spell-check | ||
uses: autowarefoundation/autoware-github-actions/spell-check@tier4/proposal | ||
with: | ||
cspell-json-url: https://raw.githubusercontent.com/tier4/autoware-spell-check-dict/main/cspell/.cspell.json |