ROS Rolling Firmware Build #487
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
name: ROS Rolling Firmware Build | |
# Get the default branch name from the repository settings | |
env: | |
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | |
on: | |
pull_request: | |
# Run only on PRs to the default branch (usually main or master) | |
branches: | |
- DEFAULT_BRANCH | |
# Don't run when the following files are changed which don't effect firmware. | |
paths-ignore: | |
- 'docs/**' | |
- .gitignore | |
- LICENSE | |
- README.md | |
push: | |
# Run on pushes to any branches except these distro-specific branches | |
branches-ignore: | |
- iron* | |
- humble* | |
- galactic* | |
- foxy* | |
# Don't run when the following files are changed which don't effect firmware. | |
paths-ignore: | |
- 'docs/**' | |
- .gitignore | |
- LICENSE | |
- README.md | |
# Run daily at midnight to detect flakiness and broken dependencies | |
schedule: | |
- cron: '0 0 * * *' | |
# Allow manual triggering | |
workflow_dispatch: | |
jobs: | |
firmware: | |
# The current file calls the firmware workflow with the following parameters | |
uses: ./.github/workflows/reusable-platformio-ci.yml | |
with: | |
ros_distro: rolling | |
# The reference field will be set to the default branch only if the event that triggered the workflow is schedule. Otherwise, it will be left blank. | |
reference: ${{ github.event_name == 'schedule' && github.event.repository.default_branch || '' }} |