Skip to content

Stop in case of error #12

Stop in case of error

Stop in case of error #12

Workflow file for this run

name: Build image
on: push
jobs:
# JOB to run change detection
changes:
runs-on: ubuntu-latest
# Set job outputs to values from filter step
outputs:
check-changes: ${{ steps.filter.outputs.check-changes }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
check-changes:
- 'image_builder/**'
- 'scripts/**'
- 'Makefile'
- 'ros-rt-img'
- '.github/workflows/build.sh'
- '.github/workflows/setup-dependencies.sh'
- '.github/workflows/build.yml'
build-jammy:
needs: changes
runs-on: ubuntu-latest
if: ${{ needs.changes.outputs.check-changes == 'true' }}
steps:
- uses: actions/checkout@v2
- name: Setup build dependencies
run: .github/workflows/setup-dependencies.sh
- name: Build image
run: .github/workflows/build.sh jammy-ros2
- name: Upload as artifact
uses: actions/upload-artifact@v4
with:
name: jammy-ros2
path: "out/*.gz"
build-noble:
needs: changes
runs-on: ubuntu-latest
if: ${{ needs.changes.outputs.check-changes == 'true' }}
steps:
- uses: actions/checkout@v2
- name: Setup build dependencies
run: .github/workflows/setup-dependencies.sh
- name: Build image
run: .github/workflows/build.sh noble-ros2
- name: Upload as artifact
uses: actions/upload-artifact@v4
with:
name: noble-ros2
path: "out/*.gz"