-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
3 changed files
with
37 additions
and
34 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,36 @@ | ||
# 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) | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] # when there is a pull request against main | ||
pull_request: | ||
branches: [main] # when there is a pull request against main | ||
workflow_dispatch: # allow manually starting this workflow | ||
|
||
jobs: | ||
industrial_ci: | ||
name: ROS ${{ matrix.ROS_DISTRO }} (${{ matrix.ROS_REPO }}) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
ROS_DISTRO: [humble] | ||
ROS_REPO: [testing, main] | ||
env: | ||
CCACHE_DIR: "${{ github.workspace }}/.ccache" # directory for ccache (and how we enable ccache in industrial_ci) | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/cache@v2 # 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). | ||
# In this simple version it will be shared between all builds of the same ROS_REPO and ROS_REPO | ||
# and might need some fine-tuning to match the use case | ||
key: ccache-${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}-${{github.run_id}} | ||
restore-keys: | | ||
ccache-${{ matrix.ROS_DISTRO }}-${{ matrix.ROS_REPO }}- | ||
- uses: 'ros-industrial/industrial_ci@master' | ||
env: | ||
ROS_DISTRO: ${{ matrix.ROS_DISTRO }} |
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