Skip to content

Commit

Permalink
Add option to clone middleware (#8)
Browse files Browse the repository at this point in the history
* Add option to upload all artifacts

* Add option to clone middleware

* Remove option for all artifacts

* Add shell

* Remove artifact input

* Verify middleware is copied

* Use checkout action

* Clean up
  • Loading branch information
IsabelParedes authored Oct 9, 2023
1 parent 3f11be1 commit 6ea334d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
13 changes: 12 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: "Debug mode"
type: boolean
default: false
rmw_wasm:
description: "Clone rmw_wasm middleware"
type: boolean
default: true

runs:
using: composite
Expand Down Expand Up @@ -52,6 +56,13 @@ runs:
vcs import --input https://raw.githubusercontent.com/ros2/ros2/${{ inputs.ros_distro }}/ros2.repos ros-workspace/src
vcs import --input ${{ github.action_path }}/repos.yaml ros-workspace/src
- name: Checkout rmw_wasm middleware
if: ${{ inputs.rmw_wasm }}
uses: actions/checkout@v4
with:
repository: ihuicatl/rmw_wasm
path: ros-workspace/src/rmw_wasm

- name: Remove unsupported packages
shell: bash -eux {0}
run: |
Expand Down Expand Up @@ -89,7 +100,7 @@ runs:
cd ros-workspace
if [${{ inputs.debug }}]; then ${{ github.action_path }}/blasm.sh -d -v -u ${{ inputs.package }}; else ${{ github.action_path }}/blasm.sh -u ${{ inputs.package }}; fi
- name: Upload artifacts
- name: Upload artifacts for package
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.package }}-artifacts
Expand Down
4 changes: 0 additions & 4 deletions repos.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
repositories:
rmw_wasm:
type: git
url: https://github.com/ihuicatl/rmw_wasm.git
version: main
dynmsg:
type: git
url: https://github.com/osrf/dynamic_message_introspection.git
Expand Down

0 comments on commit 6ea334d

Please sign in to comment.