-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate pipelines for distros (#68)
* separate humble and jazzy pipes * add scheduled runs * humble branch for scheduled --------- Co-authored-by: svastits <svastits.aron.gmail.com>
- Loading branch information
Showing
2 changed files
with
59 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: ROS-Industrial CI humble | ||
run-name: ROS-Industrial CI - ${{ github.event_name }} | ||
|
||
on: | ||
push: | ||
branches: | ||
- humble | ||
|
||
pull_request: | ||
branches: | ||
- humble | ||
|
||
schedule: | ||
# Run every Monday at 1PM UTC | ||
- cron: 0 13 * * 1 | ||
jobs: | ||
industrial_ci: | ||
name: ROS-Industrial CI | ||
strategy: | ||
matrix: | ||
env: | ||
- ROS_REPO: ros | ||
BUILDER: colcon | ||
ROS_DISTRO: humble | ||
env: | ||
CCACHE_DIR: /github/home/.ccache # Directory for ccache (and how we enable ccache in industrial_ci) | ||
EVENT_NAME: ${{ github.event_name }} | ||
BRANCH: ${{ github.event.ref }} | ||
PR_BRANCH: ${{ github.event.pull_request.head.ref }} | ||
PR_BASE: ${{ github.event.pull_request.base.ref }} | ||
PR_NUMBER: ${{ github.event.number }} | ||
ANALYZER_TOKEN: ${{ secrets.ANALYZER_TOKEN }} | ||
DEBUG_BASH: true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
if: github.event.schedule != '' | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
ref: humble | ||
- name: Checkout humble branch for scheduled runs | ||
if: github.event.schedule == '' | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
# This step will fetch/store the directory used by ccache before/after the ci run | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.CCACHE_DIR }} | ||
key: ccache-${{ matrix.env.ROS_DISTRO }}-${{ matrix.env.ROS_REPO }} | ||
# Run industrial_ci | ||
- uses: 'kroshu/industrial_ci@master' | ||
env: ${{ matrix.env }} |