forked from autowarefoundation/autoware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CI workflow (autowarefoundation#1)
Signed-off-by: Servando German Serrano <[email protected]>
- Loading branch information
1 parent
1e024a5
commit 8a77b7d
Showing
2 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |