Skip to content

Commit bb1589d

Browse files
authored
Update build_humble.yaml
1 parent 3720342 commit bb1589d

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/build_humble.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,32 @@ on:
88
push:
99
branches:
1010
- main
11+
workflow_dispatch:
12+
inputs:
13+
distinct_id:
14+
target_branch:
1115

1216
jobs:
1317
build-and-test:
14-
runs-on: ${{ matrix.os }}
15-
strategy:
16-
matrix:
17-
os: [ubuntu-22.04]
18-
fail-fast: false
18+
runs-on: ubuntu-latest
19+
container:
20+
image: osrf/ros:humble-desktop
1921
steps:
22+
- name: echo distinct ID ${{ github.event.inputs.distinct_id }}
23+
run: |
24+
echo ${{ github.event.inputs.distinct_id }}
25+
echo target_branch : ${{ github.event.inputs.target_branch }}
26+
- name: Install deps
27+
run: sudo apt-get update && sudo apt-get install -y lcov python3-vcstool python3-colcon-lcov-result python3-colcon-coveragepy-result python3-rosdep python3-pip python3-colcon-common-extensions python3-empy
2028
- name: Setup ros
2129
uses: ros-tooling/setup-ros@v0.7
2230
with:
2331
required-ros-distributions: humble
2432
- name: Checkout Aerostack2
2533
run : |
26-
echo 'repositories:\n aerostack2:\n type: git\n url: https://github.com/aerostack2/aerostack2.git\n version: main' >> /tmp/dependencies.repos
34+
export TARGET_BRANCH=${{ github.event.inputs.target_branch }}
35+
if [ -z "$TARGET_BRANCH" ]; then export TARGET_BRANCH=main; echo "No target branch provided, using $TARGET_BRANCH"; fi
36+
echo "repositories:\n aerostack2:\n type: git\n url: https://github.com/aerostack2/aerostack2.git\n version: $TARGET_BRANCH " >> /tmp/dependencies.repos
2737
- name: build and test
2838
uses: ros-tooling/action-ros-ci@v0.3
2939
with:

0 commit comments

Comments
 (0)