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 generation scripts and configurations. (StoglRobotics#30)
- Loading branch information
Showing
22 changed files
with
351 additions
and
278 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,17 @@ | ||
name: ABI Compatibility Check | ||
on: | ||
pull_request: | ||
branches: | ||
- $branch$ | ||
|
||
jobs: | ||
abi_check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ros-industrial/industrial_ci@master | ||
env: | ||
ROS_DISTRO: $ROS_DISTRO$ | ||
ROS_REPO: main | ||
ABICHECK_URL: github:${{ github.repository }}#${{ github.base_ref }} | ||
NOT_TEST_BUILD: true |
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,4 +1,7 @@ | ||
name: $Ros_distro$ Binary Build | ||
# author: Denis Štogl <[email protected]> | ||
# description: 'Build & test all dependencies from released (binary) packages.' | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
|
@@ -8,49 +11,12 @@ on: | |
- $branch$ | ||
schedule: | ||
# Run every morning to detect flakiness and broken dependencies | ||
- cron: '13 4 * * *' | ||
- cron: '03 1 * * *' | ||
|
||
jobs: | ||
$ROS_DISTRO$_binary: | ||
name: $ROS_DISTRO$ binary build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
env: | ||
- {ROS_DISTRO: $ROS_DISTRO$, ROS_REPO: main} | ||
- {ROS_DISTRO: $ROS_DISTRO$, ROS_REPO: testing} | ||
env: | ||
UPSTREAM_WORKSPACE: $NAME$-not-released.${{ matrix.env.ROS_DISTRO }}.repos | ||
CCACHE_DIR: ${{ github.workspace }}/.ccache | ||
BASEDIR: ${{ github.workspace }}/.work | ||
CACHE_PREFIX: ${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
# The target directory cache doesn't include the source directory because | ||
# that comes from the checkout. See "prepare target_ws for cache" task below | ||
- name: cache target_ws | ||
if: ${{ ! matrix.env.CCOV }} | ||
uses: pat-s/[email protected] | ||
with: | ||
path: ${{ env.BASEDIR }}/target_ws | ||
key: target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }}-${{ github.run_id }} | ||
restore-keys: | | ||
target_ws-${{ env.CACHE_PREFIX }}-${{ hashFiles('**/CMakeLists.txt', '**/package.xml') }} | ||
- name: cache ccache | ||
uses: pat-s/[email protected] | ||
with: | ||
path: ${{ env.CCACHE_DIR }} | ||
key: ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }}-${{ github.run_id }} | ||
restore-keys: | | ||
ccache-${{ env.CACHE_PREFIX }}-${{ github.sha }} | ||
ccache-${{ env.CACHE_PREFIX }} | ||
- uses: 'ros-industrial/industrial_ci@master' | ||
with: | ||
config: ${{toJSON(matrix.env)}} | ||
- name: prepare target_ws for cache | ||
if: ${{ always() && ! matrix.env.CCOV }} | ||
run: | | ||
du -sh ${{ env.BASEDIR }}/target_ws | ||
sudo find ${{ env.BASEDIR }}/target_ws -wholename '*/test_results/*' -delete | ||
sudo rm -rf ${{ env.BASEDIR }}/target_ws/src | ||
du -sh ${{ env.BASEDIR }}/target_ws | ||
binary: | ||
uses: ./.github/workflows/reusable-industrial-ci-with-cache.yml | ||
with: | ||
ros_distro: $ROS_DISTRO$ | ||
upstream_workspace: $NAME$-not-released.$ROS_DISTRO$.repos | ||
ref_for_scheduled_build: $branch$ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -16,13 +16,12 @@ jobs: | |
- uses: ros-tooling/[email protected] | ||
with: | ||
required-ros-distributions: ${{ env.ROS_DISTRO }} | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: ros-tooling/[email protected] | ||
with: | ||
target-ros2-distro: ${{ env.ROS_DISTRO }} | ||
import-token: ${{ secrets.GITHUB_TOKEN }} | ||
# build all packages listed in the meta package | ||
# build all packages listed in the meta package | ||
package-name: | ||
$PKG_NAME$ | ||
vcs-repo-file-url: | | ||
|
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 |
---|---|---|
|
@@ -16,14 +16,14 @@ jobs: | |
name: Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9.7 | ||
- name: Install system hooks | ||
run: sudo apt-get install clang-format-10 cppcheck | ||
run: sudo apt install -qq clang-format-11 cppcheck | ||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files --hook-stage manual | ||
|
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 |
---|---|---|
|
@@ -6,21 +6,18 @@ name: Format | |
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- $branch$ | ||
|
||
jobs: | ||
pre-commit: | ||
name: Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9.7 | ||
- name: Install system hooks | ||
run: sudo apt-get install clang-format-10 cppcheck | ||
run: sudo apt install -qq clang-format-11 cppcheck | ||
- uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --all-files --hook-stage manual |
Oops, something went wrong.