Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce autoware-nightly.repos #5440

Merged
merged 15 commits into from
Nov 19, 2024
14 changes: 9 additions & 5 deletions .github/actions/docker-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ inputs:
cache-tag-suffix:
description: Suffix of the target cache tag.
required: true
repos:
description: Target .repos file.
default: autoware.repos
required: true
build-args:
description: Additional build args.
required: false
Expand All @@ -28,12 +32,12 @@ runs:
- name: Run vcs import
run: |
mkdir src
vcs import src < autoware.repos
vcs import src < ${{ inputs.repos }}
shell: bash

- name: Cache ccache
uses: actions/cache@v4
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' && inputs.repos == 'autoware.repos' }}
id: cache-ccache
with:
path: |
Expand All @@ -44,7 +48,7 @@ runs:

- name: Cache apt-get
uses: actions/cache@v4
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' && inputs.repos == 'autoware.repos' }}
id: cache-apt-get
with:
path: |
Expand All @@ -55,7 +59,7 @@ runs:

- name: Restore ccache
uses: actions/cache/restore@v4
if: ${{ github.ref != 'refs/heads/main' }}
if: ${{ github.ref != 'refs/heads/main' || inputs.repos != 'autoware.repos' }}
with:
path: |
root-ccache
Expand All @@ -65,7 +69,7 @@ runs:

- name: Restore apt-get
uses: actions/cache/restore@v4
if: ${{ github.ref != 'refs/heads/main' }}
if: ${{ github.ref != 'refs/heads/main' || inputs.repos != 'autoware.repos' }}
with:
path: |
var-cache-apt
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/health-check-nightly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: health-check-nightly

on:
pull_request:
types:
- opened
- synchronize
- reopened
- labeled
schedule:
- cron: 0 6 * * *
workflow_dispatch:

jobs:
label-check:
uses: autowarefoundation/autoware-github-actions/.github/workflows/make-sure-label-is-present.yaml@v1
with:
label: tag:run-health-check

load-env:
needs: label-check
if: ${{ needs.label-check.outputs.result == 'true' ||
github.event_name == 'schedule' ||
github.event_name == 'workflow_dispatch' }}
uses: ./.github/workflows/load-env.yaml

docker-build-nightly:
needs: load-env
runs-on: ubuntu-22.04
strategy:
fail-fast: false
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set git config
uses: autowarefoundation/autoware-github-actions/set-git-config@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Free disk space
uses: ./.github/actions/free-disk-space

- name: Build 'Autoware'
uses: ./.github/actions/docker-build
with:
platform: amd64
cache-tag-suffix: nightly
repos: autoware-nightly.repos
build-args: |
ROS_DISTRO=${{ needs.load-env.outputs.rosdistro }}
BASE_IMAGE=${{ needs.load-env.outputs.base_image }}
LIB_DIR=x86_64

- name: Show disk space
if: always()
run: |
df -h
140 changes: 140 additions & 0 deletions autoware-nightly.repos
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
repositories:
# core
core/autoware_msgs:
type: git
url: https://github.com/autowarefoundation/autoware_msgs.git
version: main
core/autoware_adapi_msgs:
type: git
url: https://github.com/autowarefoundation/autoware_adapi_msgs.git
version: main
core/autoware_internal_msgs:
type: git
url: https://github.com/autowarefoundation/autoware_internal_msgs.git
version: main
# TODO(youtalk): Remove autoware_common when https://github.com/autowarefoundation/autoware/issues/4911 is closed
core/autoware_common:
type: git
url: https://github.com/autowarefoundation/autoware_common.git
version: remove-autoware-cmake-utils
core/autoware_cmake:
type: git
url: https://github.com/autowarefoundation/autoware_cmake.git
version: main
core/autoware_utils:
type: git
url: https://github.com/autowarefoundation/autoware_utils.git
version: main
core/autoware_lanelet2_extension:
type: git
url: https://github.com/autowarefoundation/autoware_lanelet2_extension.git
version: main
core/autoware.core:
type: git
url: https://github.com/autowarefoundation/autoware.core.git
version: main
# universe
universe/autoware.universe:
type: git
url: https://github.com/autowarefoundation/autoware.universe.git
version: main
universe/external/tier4_ad_api_adaptor: # TODO(TIER IV): Migrate to AD API
type: git
url: https://github.com/tier4/tier4_ad_api_adaptor.git
version: tier4/universe
universe/external/tier4_autoware_msgs:
type: git
url: https://github.com/tier4/tier4_autoware_msgs.git
version: tier4/universe
# Fix the version not to merge https://github.com/MORAI-Autonomous/MORAI-ROS2_morai_msgs/pull/9
universe/external/morai_msgs:
type: git
url: https://github.com/MORAI-Autonomous/MORAI-ROS2_morai_msgs.git
version: e2e75fc1603a9798773e467a679edf68b448e705
universe/external/muSSP:
type: git
url: https://github.com/tier4/muSSP.git
version: tier4/main
universe/external/pointcloud_to_laserscan:
type: git
url: https://github.com/tier4/pointcloud_to_laserscan.git
version: tier4/main
universe/external/eagleye:
type: git
url: https://github.com/MapIV/eagleye.git
version: autoware-main
universe/external/rtklib_ros_bridge:
type: git
url: https://github.com/MapIV/rtklib_ros_bridge.git
version: ros2-v0.1.0
universe/external/llh_converter:
type: git
url: https://github.com/MapIV/llh_converter.git
version: ros2
universe/external/glog: # TODO(Horibe): to use isGoogleInitialized() API in v0.6.0. Remove when the rosdep glog version is updated to v0.6.0 (already updated in Ubuntu 24.04)
type: git
url: https://github.com/tier4/glog.git
version: v0.6.0_t4-ros
# launcher
launcher/autoware_launch:
type: git
url: https://github.com/autowarefoundation/autoware_launch.git
version: main
# sensor_component
sensor_component/external/sensor_component_description:
type: git
url: https://github.com/tier4/sensor_component_description.git
version: main
sensor_component/external/tamagawa_imu_driver:
type: git
url: https://github.com/tier4/tamagawa_imu_driver.git
version: ros2
sensor_component/external/nebula:
type: git
url: https://github.com/tier4/nebula.git
version: main
# Fork of transport_drivers that enables reduction of copy operations
sensor_component/transport_drivers:
type: git
url: https://github.com/autowarefoundation/transport_drivers
version: main
# Continental compatible version of ROS 2 socket CAN
sensor_component/ros2_socketcan:
type: git
url: https://github.com/autowarefoundation/ros2_socketcan
version: main
# sensor_kit
sensor_kit/sample_sensor_kit_launch:
type: git
url: https://github.com/autowarefoundation/sample_sensor_kit_launch.git
version: main
sensor_kit/external/awsim_sensor_kit_launch: # TODO: Integrate into sample_sensor_kit_launch
type: git
url: https://github.com/tier4/awsim_sensor_kit_launch.git
version: main
sensor_kit/awsim_labs_sensor_kit_launch:
type: git
url: https://github.com/autowarefoundation/awsim_labs_sensor_kit_launch.git
version: main
sensor_kit/single_lidar_sensor_kit_launch:
type: git
url: https://github.com/autowarefoundation/single_lidar_sensor_kit_launch.git
version: main
# vehicle
vehicle/sample_vehicle_launch:
type: git
url: https://github.com/autowarefoundation/sample_vehicle_launch.git
version: main
vehicle/awsim_labs_vehicle_launch:
type: git
url: https://github.com/autowarefoundation/awsim_labs_vehicle_launch.git
version: main
vehicle/external/pacmod_interface:
type: git
url: https://github.com/tier4/pacmod_interface.git
version: main
# param
param/autoware_individual_params:
type: git
url: https://github.com/autowarefoundation/autoware_individual_params.git
version: main
Loading