File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build-jazzy
2+
3+ on :
4+ pull_request :
5+ types : [review_requested, ready_for_review]
6+ branches :
7+ - main
8+ push :
9+ branches :
10+ - main
11+ workflow_dispatch :
12+ inputs :
13+ distinct_id :
14+ target_branch :
15+
16+ jobs :
17+ build-and-test :
18+ runs-on : ubuntu-latest
19+ container :
20+ image : osrf/ros:jazzy-desktop
21+ 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
28+ - name : Setup ros
29+ uses :
ros-tooling/[email protected] 30+ with :
31+ required-ros-distributions : jazzy
32+ - name : Checkout Aerostack2
33+ run : |
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+ wget https://raw.githubusercontent.com/aerostack2/as2_platform_pixhawk/main/dependencies.repos -O /tmp/dependencies.repos && \
37+ echo " aerostack2:\n type: git\n url: https://github.com/aerostack2/aerostack2.git\n version: $TARGET_BRANCH " >> /tmp/dependencies.repos
38+ - name : build and test
39+ uses :
ros-tooling/[email protected] 40+ with :
41+ package-name : >
42+ as2_platform_pixhawk
43+ target-ros2-distro : jazzy
44+ vcs-repo-file-url : /tmp/dependencies.repos
You can’t perform that action at this time.
0 commit comments