Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tasada038 authored Dec 3, 2023
1 parent 48df576 commit b84988c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build ROS2 tests
name: Build ROS2

on:
push:
Expand All @@ -12,7 +12,7 @@ on:
types: [published]

jobs:
build_pkg:
build_ros2:
strategy:
matrix:
rosdistro: [ humble ]
Expand All @@ -32,8 +32,11 @@ jobs:
with:
path: src/tb3_behavior_tree

- name: Install dependencies
run: rosdep update --include-eol-distros && apt-get update && rosdep install --from-path . -i -y --rosdistro ${{ matrix.rosdistro }}
# - name: Install dependencies
# run: rosdep update --include-eol-distros && apt-get update && rosdep install --from-path . -i -y --rosdistro ${{ matrix.rosdistro }}

- name: Install diagnostic-updater
run: apt-get install ros-${{ matrix.rosdistro }}-diagnostic-updater

- name: Build tests
id: build_test
Expand All @@ -48,9 +51,10 @@ jobs:
if: steps.build_test.outcome == 'failure'
run: echo "result - failure" && exit 1


check_status:
needs: build_pkg
if: ${{ needs.build_pkg.outcome != 'success' }}
needs: build_ros2
if: ${{ needs.build_ros2.outcome != 'success' }}
runs-on: ubuntu-latest
steps:
- name: Set Workflow Status to Failure
Expand Down

0 comments on commit b84988c

Please sign in to comment.