forked from StoglRobotics/ros_team_workspace
-
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.
Update CI setup in general and add more detailed explanations into do…
…cs. (StoglRobotics#49) Co-authored-by: Manuel M <[email protected]>
- Loading branch information
Showing
24 changed files
with
260 additions
and
79 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
source /opt/ros/rolling/setup.bash | ||
|
||
cmd=$1 | ||
shift | ||
$cmd "$@" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
name: $Ros_distro$ Binary Build | ||
name: $Ros_distro$ Binary Build - main | ||
# author: Denis Štogl <[email protected]> | ||
# description: 'Build & test all dependencies from released (binary) packages.' | ||
|
||
on: | ||
workflow_dispatch: | ||
branches: | ||
- $branch$ | ||
pull_request: | ||
branches: | ||
- $branch$ | ||
|
@@ -17,6 +20,7 @@ jobs: | |
binary: | ||
uses: ./.github/workflows/reusable-industrial-ci-with-cache.yml | ||
with: | ||
ros_distro: $ROS_DISTRO$ | ||
upstream_workspace: $NAME$-not-released.$ROS_DISTRO$.repos | ||
ros_distro: $ros_distro$ | ||
ros_repo: main | ||
upstream_workspace: $NAME$-not-released.$ros_distro$.repos | ||
ref_for_scheduled_build: $branch$ |
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,26 @@ | ||
name: $Ros_distro$ Binary Build - testing | ||
# author: Denis Štogl <[email protected]> | ||
# description: 'Build & test all dependencies from released (binary) packages.' | ||
|
||
on: | ||
workflow_dispatch: | ||
branches: | ||
- $branch$ | ||
pull_request: | ||
branches: | ||
- $branch$ | ||
push: | ||
branches: | ||
- $branch$ | ||
schedule: | ||
# Run every morning to detect flakiness and broken dependencies | ||
- cron: '03 1 * * *' | ||
|
||
jobs: | ||
binary: | ||
uses: ./.github/workflows/reusable-industrial-ci-with-cache.yml | ||
with: | ||
ros_distro: $ros_distro$ | ||
ros_repo: testing | ||
upstream_workspace: $NAME$-not-released.$ros_distro$.repos | ||
ref_for_scheduled_build: $branch$ |
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 |
---|---|---|
@@ -1,23 +1,26 @@ | ||
name: Coverage Build | ||
on: | ||
workflow_dispatch: | ||
branches: | ||
- $branch$ | ||
pull_request: | ||
branches: | ||
- $branch$ | ||
|
||
jobs: | ||
coverage: | ||
name: coverage build | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
env: | ||
ROS_DISTRO: $ROS_DISTRO$ | ||
ROS_DISTRO: $ros_distro$ | ||
steps: | ||
- uses: ros-tooling/setup-ros@v0.2 | ||
- uses: ros-tooling/setup-ros@0.3.4 | ||
with: | ||
required-ros-distributions: ${{ env.ROS_DISTRO }} | ||
- uses: actions/checkout@v3 | ||
- uses: ros-tooling/action-ros-ci@v0.2 | ||
- uses: ros-tooling/action-ros-ci@0.2.6 | ||
with: | ||
target-ros2-distro: ${{ env.ROS_DISTRO }} | ||
import-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -33,13 +36,12 @@ jobs: | |
} | ||
} | ||
colcon-mixin-repository: https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml | ||
skip-tests: true | ||
- uses: codecov/[email protected] | ||
- uses: codecov/[email protected] | ||
with: | ||
file: ros_ws/lcov/total_coverage.info | ||
flags: unittests | ||
name: codecov-umbrella | ||
- uses: actions/upload-artifact@v1 | ||
- uses: actions/upload-artifact@v3.1.0 | ||
with: | ||
name: colcon-logs-${{ matrix.os }} | ||
name: colcon-logs-coverage-rolling | ||
path: ros_ws/log |
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
with: | ||
python-version: 3.9.7 | ||
- name: Install system hooks | ||
run: sudo apt install -qq clang-format-11 cppcheck | ||
run: sudo apt install -qq clang-format-12 cppcheck | ||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files --hook-stage manual | ||
|
Oops, something went wrong.