-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:aerostack2/as2_platform_dji_psdk
- Loading branch information
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,17 +8,21 @@ on: | |
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
inputs: | ||
distinct_id: | ||
target_branch: | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ${{ matrix.os }} | ||
runs-on: ubuntu-latest | ||
container: | ||
image: osrf/ros:humble-desktop | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
fail-fast: false | ||
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 | ||
|
@@ -27,7 +31,9 @@ jobs: | |
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/[email protected] | ||
with: | ||
|