From bb1589d291ee2421748df326118f3373925c0692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20P=C3=A9rez?= <57761265+RPS98@users.noreply.github.com> Date: Wed, 24 Apr 2024 15:20:05 +0200 Subject: [PATCH] Update build_humble.yaml --- .github/workflows/build_humble.yaml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_humble.yaml b/.github/workflows/build_humble.yaml index 3cc21f7..f8f8fdd 100644 --- a/.github/workflows/build_humble.yaml +++ b/.github/workflows/build_humble.yaml @@ -8,22 +8,32 @@ on: push: branches: - main + workflow_dispatch: + inputs: + distinct_id: + target_branch: jobs: build-and-test: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-22.04] - fail-fast: false + runs-on: ubuntu-latest + container: + image: osrf/ros:humble-desktop steps: + - name: echo distinct ID ${{ github.event.inputs.distinct_id }} + run: | + echo ${{ github.event.inputs.distinct_id }} + echo target_branch : ${{ github.event.inputs.target_branch }} + - name: Install deps + 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 - name: Setup ros uses: ros-tooling/setup-ros@v0.7 with: required-ros-distributions: humble - name: Checkout Aerostack2 run : | - echo 'repositories:\n aerostack2:\n type: git\n url: https://github.com/aerostack2/aerostack2.git\n version: main' >> /tmp/dependencies.repos + export TARGET_BRANCH=${{ github.event.inputs.target_branch }} + if [ -z "$TARGET_BRANCH" ]; then export TARGET_BRANCH=main; echo "No target branch provided, using $TARGET_BRANCH"; fi + echo "repositories:\n aerostack2:\n type: git\n url: https://github.com/aerostack2/aerostack2.git\n version: $TARGET_BRANCH " >> /tmp/dependencies.repos - name: build and test uses: ros-tooling/action-ros-ci@v0.3 with: