Skip to content

Commit 13d2118

Browse files
committed
Merge branch 'main' of github.com:aerostack2/as2_platform_dji_psdk
2 parents f4719f8 + bb1589d commit 13d2118

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/build_humble.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,21 @@ 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 }}
18+
runs-on: ubuntu-latest
1519
container:
1620
image: osrf/ros:humble-desktop
17-
strategy:
18-
matrix:
19-
os: [ubuntu-22.04]
20-
fail-fast: false
2121
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 }}
2226
- name: Install deps
2327
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
2428
- name: Setup ros
@@ -27,7 +31,9 @@ jobs:
2731
required-ros-distributions: humble
2832
- name: Checkout Aerostack2
2933
run : |
30-
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
3137
- name: build and test
3238
uses: ros-tooling/action-ros-ci@v0.3
3339
with:

0 commit comments

Comments
 (0)