From 880f80baeeefbb4e145725dcb356bd9c48b0321a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20Pal=C3=A9ologue?= Date: Fri, 10 Nov 2023 16:28:49 +0100 Subject: [PATCH] Add CI --- .github/workflows/foxy_focal.yml | 15 ++++++++++ .github/workflows/galactic_focal.yml | 15 ++++++++++ .github/workflows/humble_jammy.yml | 15 ++++++++++ .github/workflows/iron_jammy.yml | 15 ++++++++++ .github/workflows/ros2.yml | 41 ++++++++++++++++++++++++++++ 5 files changed, 101 insertions(+) create mode 100644 .github/workflows/foxy_focal.yml create mode 100644 .github/workflows/galactic_focal.yml create mode 100644 .github/workflows/humble_jammy.yml create mode 100644 .github/workflows/iron_jammy.yml create mode 100644 .github/workflows/ros2.yml diff --git a/.github/workflows/foxy_focal.yml b/.github/workflows/foxy_focal.yml new file mode 100644 index 0000000..5260a12 --- /dev/null +++ b/.github/workflows/foxy_focal.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/galactic_focal.yml b/.github/workflows/galactic_focal.yml new file mode 100644 index 0000000..39f6e44 --- /dev/null +++ b/.github/workflows/galactic_focal.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/humble_jammy.yml b/.github/workflows/humble_jammy.yml new file mode 100644 index 0000000..4332206 --- /dev/null +++ b/.github/workflows/humble_jammy.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/iron_jammy.yml b/.github/workflows/iron_jammy.yml new file mode 100644 index 0000000..b289972 --- /dev/null +++ b/.github/workflows/iron_jammy.yml @@ -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 diff --git a/.github/workflows/ros2.yml b/.github/workflows/ros2.yml new file mode 100644 index 0000000..dfba116 --- /dev/null +++ b/.github/workflows/ros2.yml @@ -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 }} \ No newline at end of file