From 89b1f8282213c10df7b17a08c56799545f0fd16f Mon Sep 17 00:00:00 2001 From: Lightech <lightech@outlook.com> Date: Tue, 16 Aug 2022 03:24:46 -0400 Subject: [PATCH] Compress the install dir before upload artifact for efficiency --- .github/workflows/main.yml | 2 +- build_ros2.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4e9e0de..0e53cea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,4 +20,4 @@ jobs: - uses: actions/upload-artifact@v3 with: name: ros2_install - path: ros2_ws/install/ + path: ros2_install.tar.xz # ros2_ws/install/ diff --git a/build_ros2.sh b/build_ros2.sh index 295d8bf..a35c527 100755 --- a/build_ros2.sh +++ b/build_ros2.sh @@ -18,3 +18,6 @@ mkdir -p ros2_ws cd ros2_ws ln -s ../src src colcon build --merge-install --cmake-force-configure --cmake-args -DCMAKE_TOOLCHAIN_FILE=$REPO_ROOT/iOS_Simulator.cmake -DBUILD_TESTING=NO -DTHIRDPARTY=FORCE -DCOMPILE_TOOLS=NO -DFORCE_BUILD_VENDOR_PKG=ON -DBUILD_MEMORY_TOOLS=OFF -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DRCL_LOGGING_IMPLEMENTATION=rcl_logging_noop + +cd $REPO_ROOT +tar czf ros2_install.tar.xz ros2_ws/install/