-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathci_helper.sh
More file actions
executable file
·31 lines (24 loc) · 885 Bytes
/
Copy pathci_helper.sh
File metadata and controls
executable file
·31 lines (24 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
platform=$1
resourceUrl=https://github.com/light-tech/ROS2-On-iOS/releases/download/humble-1.4
fetchCachedPythonEnvAndPrebuiltDeps() {
curl -OL $resourceUrl/python_venv.tar.xz \
-O $resourceUrl/deps_$platform.tar.xz
}
fetchPrebuiltWorkspace() {
workspaceToBuild=$1
case $workspaceToBuild in
"base")
echo "No dependent workspace for ROS2 base";;
"rviz2")
curl -OL $resourceUrl/base_$platform.tar.xz;;
"moveit2")
curl -OL $resourceUrl/base_$platform.tar.xz -O $resourceUrl/rviz2_$platform.tar.xz;;
"tutorials")
curl -OL $resourceUrl/base_$platform.tar.xz -O $resourceUrl/rviz2_$platform.tar.xz -O $resourceUrl/moveit2_$platform.tar.xz;;
*)
echo "Unknown workspace to build";;
esac
}
extractArtifacts() {
find . -name "*.tar.xz" -exec tar xzf {} \;
}