-
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.
Signed-off-by: Franco Cipollone <franco.c@ekumenlabs.com>
- Loading branch information
1 parent
d05e356
commit 625fb83
Showing
1 changed file
with
62 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: wheel | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
|
||
env: | ||
PACKAGE_NAME: maliput_py | ||
ROS_DISTRO: foxy | ||
ROS_WS: maliput_ws | ||
|
||
jobs: | ||
wheel_generation: | ||
name: Wheel generation | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ubuntu:20.04 | ||
steps: | ||
# setup-ros first since it installs git, which is needed to fetch all branches from actions/checkout | ||
- uses: ros-tooling/setup-ros@v0.7 | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: ${{ env.ROS_WS }}/src/${{ env.PACKAGE_NAME }} | ||
# clone public dependencies | ||
- name: vcs import | ||
shell: bash | ||
working-directory: ${{ env.ROS_WS }} | ||
run: vcs import src < src/${PACKAGE_NAME}/.github/dependencies.repos | ||
- name: check if dependencies have a matching branch | ||
shell: bash | ||
working-directory: ${{ env.ROS_WS }}/src | ||
run: ./${PACKAGE_NAME}/.github/try_vcs_checkout ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} . | ||
- run: colcon graph | ||
shell: bash | ||
working-directory: ${{ env.ROS_WS }} | ||
- name: rosdep install | ||
shell: bash | ||
working-directory: ${{ env.ROS_WS }} | ||
run: | | ||
rosdep update; | ||
rosdep install -i -y --rosdistro ${ROS_DISTRO} --from-paths src | ||
- name: colcon build up-to | ||
shell: bash | ||
working-directory: ${{ env.ROS_WS }} | ||
run: | | ||
. /opt/ros/${ROS_DISTRO}/setup.bash; | ||
colcon build --packages-up-to ${PACKAGE_NAME} \ | ||
--packages-skip ${PACKAGE_NAME} \ | ||
--event-handlers=console_direct+ | ||
- name: build wheel | ||
shell: bash | ||
working-directory: ${{ env.ROS_WS }} | ||
run: | | ||
. /opt/ros/${ROS_DISTRO}/setup.bash; | ||
colcon build --packages-select ${PACKAGE_NAME} \ | ||
--cmake-args -DWHEEL_GENERATION=True \ | ||
--event-handlers=console_direct+ | ||
- name: upload wheel | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: ${{ env.ROS_WS }}/build/${{ env.PACKAGE_NAME }}/bin/wheel/* |