-
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.
- Loading branch information
1 parent
b51ae28
commit a42aa93
Showing
10 changed files
with
171 additions
and
83 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,15 @@ | ||
name: ros2-foxy-focal | ||
|
||
on: | ||
push | ||
|
||
jobs: | ||
ros2_foxy_focal_ci: | ||
name: foxy (focal) | ||
uses: ./.github/workflows/ros2.yml | ||
with: | ||
ROS_DISTRO: foxy | ||
ROS_REPO: testing | ||
OS_NAME: ubuntu | ||
OS_CODE_NAME: focal | ||
ALLOW_FAIL: false |
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,15 @@ | ||
name: ros2-galactic-focal | ||
|
||
on: | ||
push | ||
|
||
jobs: | ||
ros2_galactic_focal_ci: | ||
name: galactic (focal) | ||
uses: ./.github/workflows/ros2.yml | ||
with: | ||
ROS_DISTRO: galactic | ||
ROS_REPO: testing | ||
OS_NAME: ubuntu | ||
OS_CODE_NAME: focal | ||
ALLOW_FAIL: false |
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,15 @@ | ||
name: ros2-humble-jammy | ||
|
||
on: | ||
push | ||
|
||
jobs: | ||
ros2_humble_jammy_ci: | ||
name: humble (jammy) | ||
uses: ./.github/workflows/ros2.yml | ||
with: | ||
ROS_DISTRO: humble | ||
ROS_REPO: testing | ||
OS_NAME: ubuntu | ||
OS_CODE_NAME: jammy | ||
ALLOW_FAIL: false |
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,15 @@ | ||
name: ros2-iron-jammy | ||
|
||
on: | ||
push | ||
|
||
jobs: | ||
ros2_iron_jammy_ci: | ||
name: iron (jammy) | ||
uses: ./.github/workflows/ros2.yml | ||
with: | ||
ROS_DISTRO: iron | ||
ROS_REPO: testing | ||
OS_NAME: ubuntu | ||
OS_CODE_NAME: jammy | ||
ALLOW_FAIL: false |
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,41 @@ | ||
name: ros2 | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
ROS_DISTRO: | ||
required: true | ||
type: string | ||
ROS_REPO: | ||
required: true | ||
type: string | ||
OS_NAME: | ||
required: true | ||
type: string | ||
OS_CODE_NAME: | ||
required: true | ||
type: string | ||
ALLOW_FAIL: | ||
required: true | ||
type: boolean | ||
|
||
jobs: | ||
ros2_ci: | ||
name: ROS2 | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{ inputs.ALLOW_FAIL }} | ||
env: | ||
CCACHE_DIR: "${{ github.workspace }}/.ccache" | ||
steps: | ||
- name: Check out the naoqi_driver2 repo | ||
uses: actions/checkout@v2 | ||
- name: Fetch/store directory used by ccache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ env.CCACHE_DIR }} | ||
key: ccache-${{ inputs.ROS_DISTRO }}-${{ inputs.ROS_REPO }}-${{github.run_id}} | ||
restore-keys: | | ||
ccache-${{ inputs.ROS_DISTRO }}-${{ inputs.ROS_REPO }}- | ||
- name: Run industrial CI | ||
uses: 'ros-industrial/industrial_ci@master' | ||
env: ${{ inputs }} |
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,27 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Installer should show up to the user if it is not an automated job. | ||
if [ -n "$DEBIAN_FRONTEND" ]; then | ||
if [ "$DEBIAN_FRONTEND" = "noninteractive" ]; then | ||
INSTALL_MODE_FLAG=("--mode" "unattended") | ||
elif [ "$DEBIAN_FRONTEND" = "readline" ]; then | ||
INSTALL_MODE_FLAG=("--mode" "text") | ||
fi | ||
fi | ||
# For GitHub Actions this works better | ||
if [ -n "$CI" ] && [ "$CI" = 1 ]; then | ||
INSTALL_MODE_FLAG=("--mode" "unattended") | ||
fi | ||
# For ROS 2 CI, we can check if we're in a Docker container. | ||
if [ -f /.dockerenv ]; then | ||
INSTALL_MODE_FLAG=("--mode" "unattended") | ||
fi | ||
|
||
# Unless they specifically agree to the license. | ||
if [ -n "$I_AGREE_TO_PEPPER_MESHES_LICENSE" ] && [ "$I_AGREE_TO_PEPPER_MESHES_LICENSE" = 1 ]; then | ||
INSTALL_MODE_FLAG=("--mode" "unattended") | ||
fi | ||
|
||
# Call the installer, pass our flag and all the remaining arguments | ||
$1 "${INSTALL_MODE_FLAG[@]}" "${@:2}" |
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