Skip to content

Commit 295b8b6

Browse files
committed
Publish intermediate dependencies as it could be reused between different ROS2 versions; build dependencies only for macOS
1 parent e17b232 commit 295b8b6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,18 @@ jobs:
2424
# python-version: '3.10'
2525
# cache: 'pip'
2626
# - run: pip3 install -r requirements.txt
27+
2728
- name: Build dependencies
2829
run: ./build_deps.sh ${{ matrix.platformArch }}
30+
if: ${{ startsWith(matrix.platformArch, 'macOS') }}
31+
- run: tar cJf ros2deps_${{ matrix.platformArch }}.tar.xz ros2_${{ matrix.platformArch }}/
32+
if: ${{ startsWith(matrix.platformArch, 'macOS') }}
33+
- uses: actions/upload-artifact@v3
34+
with:
35+
name: ros2deps_${{ matrix.platformArch }}
36+
path: ros2deps_${{ matrix.platformArch }}.tar.xz
37+
if: ${{ startsWith(matrix.platformArch, 'macOS') }}
38+
2939
- name: Build ROS2
3040
run: ./build_ros2.sh ${{ matrix.platformArch }}
3141
- run: tar cJf ros2_${{ matrix.platformArch }}.tar.xz ros2_${{ matrix.platformArch }}/

0 commit comments

Comments
 (0)