-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate github action to rolling (#10)
* Adapt launch syntax (get rid of 'node_' prefix) Signed-off-by: Nordmann Arne (CR/ADT3) <[email protected]> * Migrating CI action to rolling Signed-off-by: Nordmann Arne (CR/ADT3) <[email protected]> * License and updated CI build badge Signed-off-by: Nordmann Arne (CR/ADT3) <[email protected]>
- Loading branch information
Showing
6 changed files
with
41 additions
and
52 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 |
---|---|---|
|
@@ -5,36 +5,27 @@ on: | |
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: docker://ros:foxy-ros-base-focal | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-20.04 ] | ||
ros_distribution: [ rolling ] | ||
steps: | ||
- name: Setup workspace | ||
run: mkdir -p watchdogs_ws/src | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: watchdogs_ws/src/watchdogs | ||
- name: ros-deps | ||
working-directory: watchdogs_ws | ||
run: | | ||
sudo apt-get update | ||
rosdep update | ||
rosdep install --from-paths src --ignore-src --rosdistro foxy -yr | ||
- name: build | ||
shell: bash | ||
working-directory: watchdogs_ws | ||
run: | | ||
source /opt/ros/foxy/setup.bash | ||
colcon build --cmake-args -DCMAKE_BUILD_TYPE=RELEASE | ||
# - name: Test | ||
# working-directory: ${{runner.workspace}}/build | ||
# shell: bash | ||
# run: | | ||
# colcon test | ||
# colcon test-result --verbose | ||
# colcon test-result --all | ||
- uses: actions/checkout@v2 | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: ${{ matrix.ros_distribution }} | ||
- uses : ros-tooling/[email protected] | ||
with: | ||
package-name: "sw_watchdog" | ||
target-ros2-distro: ${{ matrix.ros_distribution }} | ||
vcs-repo-file-url: "" | ||
colcon-mixin-name: coverage-gcc | ||
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
file: ros_ws/lcov/total_coverage.info |
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
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
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
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
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