Skip to content

Commit

Permalink
ci: fix ci settings (#160)
Browse files Browse the repository at this point in the history
* docs: fix mkdocs settings

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

* ci: run ARM64 test if labeled

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

* ci: change shfmt config

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

* fix target branch name

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

* remove deploy-docs.yaml

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

* change cron shedule of delete-closed-pr-docs

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

* fix workflow name

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
  • Loading branch information
kenji-miyake authored Dec 11, 2021
1 parent 6bba4f8 commit d6007c3
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 37 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build-and-test-pr-arm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: build-and-test-pr-arm

on:
pull_request:
types:
- labeled

jobs:
build-and-test:
if: ${{ github.event.label.name == 'ARM64' }}
runs-on: [self-hosted, linux, ARM64]
container: ros:galactic
steps:
- name: Get modified packages
id: get-modified-packages
uses: autowarefoundation/autoware-github-actions/get-modified-packages@tier4/proposal

- name: Build and test
id: build-and-test
uses: autowarefoundation/autoware-github-actions/colcon-build-and-test@tier4/proposal
with:
rosdistro: galactic
build-depends-repos: build_depends.repos
target-packages: ${{ steps.get-modified-packages.outputs.modified-packages }}
2 changes: 1 addition & 1 deletion .github/workflows/delete-closed-pr-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: delete-closed-pr-docs

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

jobs:
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/deploy-docs.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/generate-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
- 6a086d5eac5effbed9876049233213f5cd358914
- tier4/proposal
paths:
- "mkdocs.yaml"
- "**/*.md"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: spell-check-pr
name: spell-check

on:
pull_request:
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ repos:
rev: v3.4.1-1
hooks:
- id: shfmt
args: [-w, -s, -i=4]

- repo: https://github.com/pycqa/isort
rev: 5.10.1
Expand Down
4 changes: 2 additions & 2 deletions common/autoware_debug_tools/scripts/stop_reason2tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
stop_reason_name="$1"

if [ -z "${stop_reason_name}" ]; then
echo "Please input stop_reason_name as the 1st argument."
exit 1
echo "Please input stop_reason_name as the 1st argument."
exit 1
fi

ros2 run autoware_debug_tools stop_reason2pose.py /planning/scenario_planning/status/stop_reasons >/dev/null 2>&1 &
Expand Down
20 changes: 10 additions & 10 deletions common/autoware_rosbag_recorder/scripts/record.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#!/bin/sh

usage_exit() {
echo "Usage: ros2 run autoware_rosbag_recorder record.sh [-o filename]" 1>&2
exit 1
echo "Usage: ros2 run autoware_rosbag_recorder record.sh [-o filename]" 1>&2
exit 1
}

while getopts o:h OPT; do
case $OPT in
"o") echo "record as $OPTARG" ;;
"h") usage_exit ;;
"*") usage_exit ;;
\?) usage_exit ;;
esac
case $OPT in
"o") echo "record as $OPTARG" ;;
"h") usage_exit ;;
"*") usage_exit ;;
\?) usage_exit ;;
esac
done

if [ -n "$OPTARG" ]; then
ros2 bag record -e "(.*)/velodyne_packets|/pacmod_interface/(.*)|/pacmod/(.*)|/vehicle/(.*)|/sensing/imu/(.*)|/sensing/gnss/(.*)|/sensing/camera/(.*)/camera_info|/sensing/camera/(.*)/compressed|/perception/object_recognition/detection/rois(.)|/perception/object_recognition/objects" -o "$OPTARG"
ros2 bag record -e "(.*)/velodyne_packets|/pacmod_interface/(.*)|/pacmod/(.*)|/vehicle/(.*)|/sensing/imu/(.*)|/sensing/gnss/(.*)|/sensing/camera/(.*)/camera_info|/sensing/camera/(.*)/compressed|/perception/object_recognition/detection/rois(.)|/perception/object_recognition/objects" -o "$OPTARG"
else
usage_exit
usage_exit
fi
3 changes: 3 additions & 0 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ extra_javascript:

plugins:
- awesome-pages
- exclude:
regex:
- '^.*\.(?!(.*\.)?md|(.*\.)?svg|(.*\.)?png|(.*\.)?jpg|(.*\.)?css).*$'
- same-dir
- search

Expand Down

0 comments on commit d6007c3

Please sign in to comment.