Skip to content

Commit

Permalink
ci: update CI settings (#403)
Browse files Browse the repository at this point in the history
* ci: add sync-files.yaml

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* ci: update CI settings

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* chore: add TODO comments

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* chore: change package name in check-missing-packages.yaml

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* ci: add git config for private repositories

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* fix

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* fix style

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
  • Loading branch information
kenji-miyake authored Feb 1, 2022
1 parent aee9a76 commit 9c4f6f3
Show file tree
Hide file tree
Showing 25 changed files with 135 additions and 772 deletions.
7 changes: 0 additions & 7 deletions .aderc

This file was deleted.

7 changes: 0 additions & 7 deletions .github/dependabot.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/sync-files.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
- repository: autowarefoundation/autoware
files:
- source: .github/dependabot.yaml
- source: .github/workflows/automatic-rebase.yaml
# - source: .github/workflows/build.yaml # TODO: Sync after renaming to autoware.repos
- source: .github/workflows/pre-commit-optional.yaml
- source: .github/workflows/pre-commit.yaml
- source: .github/workflows/semantic-pull-request.yaml
- source: .github/workflows/spell-check.yaml
# - source: .github/workflows/vcs-import.yaml # TODO: Sync after renaming to autoware.repos
- source: .clang-format
- source: .markdown-link-check.json
- source: .markdownlint.yaml
# - source: .pre-commit-config.yaml # TODO: Sync after yamllint and ansible-lint have passed
- source: .pre-commit-config-optional.yaml
- source: .prettierignore
- source: .prettierrc
- source: .yamllint.yaml
- source: CPPLINT.cfg
- source: setup.cfg
59 changes: 0 additions & 59 deletions .github/workflows/build-pr.yml

This file was deleted.

15 changes: 14 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,22 @@ jobs:
- name: Check out repository
uses: actions/checkout@v2

# TODO: Install this in the script and remove this
- name: Install dependencies for the setup script
run: |
apt-get -y update
apt-get -y install sudo
- name: Run setup script
run: |
./setup-dev-env.sh -y universe
touch ~/.bashrc
./setup_ubuntu20.04.sh -c
- name: Set git config for private repositories
run: |
git config --local --unset-all http.https://github.com/.extraheader || true
git config --global url.https://x-access-token:${{ secrets.REPO_TOKEN }}@github.com/.insteadOf 'https://github.com/'
git config --global url.https://x-access-token:${{ secrets.REPO_TOKEN }}@github.com/.insteadOf 'git@github.com:'
- name: Run vcs import
run: |
Expand Down
64 changes: 0 additions & 64 deletions .github/workflows/build.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/check-missing-packages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Check missing packages

on:
schedule:
- cron: 0 19 * * 0 # run at 4 AM JST on Sundays
workflow_dispatch:

jobs:
check-missing-packages:
runs-on: ubuntu-latest
container: ros:${{ matrix.ros_distribution }}
strategy:
fail-fast: false
matrix:
include:
- { ros_distribution: galactic, package: __dummy__ }
steps:
- name: Check ros-${{ matrix.ros_distribution }}-${{ matrix.package }}
id: check-package
run: |
sudo apt-get -y update
result=$(apt-cache search ros-${{ matrix.ros_distribution }}-${{ matrix.package }})
echo "::set-output name=result::$result"
- name: Install ros-${{ matrix.ros_distribution }}-${{ matrix.package }}
if: ${{ jobs.check-package.outputs.result != '' }}
run: |
sudo apt-get -y install ros-${{ matrix.ros_distribution }}-${{ matrix.package }}
- name: Notify by raising an error
if: ${{ jobs.check-package.outputs.result != '' }}
run: |
echo "ros-${{ matrix.ros_distribution }}-${{ matrix.package }} can be installed."
exit 1
27 changes: 0 additions & 27 deletions .github/workflows/check-missing-packages.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/create-index-page.yml

This file was deleted.

109 changes: 0 additions & 109 deletions .github/workflows/generate-docs.yml

This file was deleted.

Loading

0 comments on commit 9c4f6f3

Please sign in to comment.