Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ refactor(ci): updated industrial_ci so that you can pass in additional debs as input #35

Merged
merged 3 commits into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/reusable-industrial-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
name: Industrial CI
# This config uses industrial_ci (https://github.com/ros-industrial/industrial_ci.git).
# For troubleshooting, see README (https://github.com/ros-industrial/industrial_ci/blob/master/README.rst)
on:
workflow_call:
inputs:
Expand Down Expand Up @@ -34,6 +32,11 @@ on:
required: false
default: ""
type: string
additional_debs:
description: "Additional Debian packages to install"
required: false
default: ""
type: string
jobs:
industrial_ci:
name: ROS ${{ matrix.ROS_DISTRO }} (${{ matrix.ROS_REPO }})
Expand All @@ -46,13 +49,12 @@ jobs:
env:
CCACHE_DIR: "${{ github.workspace }}/.ccache" # Directory for ccache (and how we enable ccache in industrial_ci)
BEFORE_INSTALL_TARGET_DEPENDENCIES: "${{ inputs.before_install_target_dependencies }}" # Run extra dependencies setup script
ADDITIONAL_DEBS: "${{ inputs.additional_debs }}" # Pass additional Debian packages as input
steps:
- uses: actions/checkout@v4 # Clone the target repository
- uses: actions/cache@v4 # Fetch/store the directory used by ccache before/after the CI run
with:
path: ${{ env.CCACHE_DIR }}
# This configuration will always create a new ccache cache starting off from the previous one (if any).
# Shared between all builds of the same ROS_DISTRO and ROS_REPO.
key: ccache-${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}-${{ github.run_id }}
restore-keys: |
ccache-${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}-
Expand All @@ -63,3 +65,4 @@ jobs:
UPSTREAM_WORKSPACE: ${{ inputs.upstream_workspace }} # Pass upstream workspace URL
NOT_TEST_BUILD: ${{ inputs.skip_tests }} # Skip tests if specified
BEFORE_INSTALL_TARGET_DEPENDENCIES: ${{ env.BEFORE_INSTALL_TARGET_DEPENDENCIES }} # Extra dependencies step
ADDITIONAL_DEBS: ${{ inputs.additional_debs }} # Pass additional Debian packages as input