Skip to content

Commit

Permalink
Added CI workflow (autowarefoundation#1)
Browse files Browse the repository at this point in the history
Signed-off-by: Servando German Serrano <[email protected]>
  • Loading branch information
sgermanserrano authored May 29, 2020
1 parent 1e024a5 commit 8a77b7d
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/cuda-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CUDA CI workflow

on:
pull_request:
push:
branches:
- master

jobs:

build-melodic:

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

container:
image: autoware/autoware:bleedingedge-melodic-base-cuda
env:
VCS_FILE: autoware.ai.repos
ROS_DISTRO: melodic
options: --user 1001

steps:

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

- name: Prepare repo
run: |
mkdir src
vcs validate < $VCS_FILE
vcs import src/ < $VCS_FILE
rosdep update
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
- name: Build and test repo
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Debug; \
colcon build --cmake-target tests --cmake-args -DCMAKE_BUILD_TYPE=Debug; \
colcon test; \
colcon test-result --verbose'
45 changes: 45 additions & 0 deletions .github/workflows/native-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Native CI workflow

on:
pull_request:
push:
branches:
- master

jobs:

build-melodic:

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

container:
image: autoware/autoware:bleedingedge-melodic-base
env:
VCS_FILE: autoware.ai.repos
ROS_DISTRO: melodic
options: --user 1001

steps:

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

- name: Prepare repo
run: |
mkdir src
vcs validate < $VCS_FILE
vcs import src/ < $VCS_FILE
rosdep update
rosdep install -y --from-paths src --ignore-src --rosdistro $ROS_DISTRO
- name: Build and test repo
run: |
bash -c 'source /opt/ros/$ROS_DISTRO/setup.bash; \
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Debug; \
colcon build --cmake-target tests --cmake-args -DCMAKE_BUILD_TYPE=Debug; \
colcon test; \
colcon test-result --verbose'

0 comments on commit 8a77b7d

Please sign in to comment.