Compare commits

..

9 Commits

Author SHA1 Message Date
Oleg Kalachev
0c0cbb66e6 Upload Parallels image 2022-11-05 16:58:55 +06:00
Oleg Kalachev
96068be29e Use sudo 2022-11-05 04:04:06 +06:00
Oleg Kalachev
4bab19ee18 Install OVF Tool for macOS 2022-11-05 02:27:13 +06:00
Oleg Kalachev
5aec478813 Fix 2022-11-02 00:57:20 +06:00
Oleg Kalachev
c5513f6f6d Install libncurses 2022-11-02 00:55:22 +06:00
Oleg Kalachev
9ece13eb34 Fix 2022-11-01 22:58:03 +06:00
Oleg Kalachev
969ac032f6 Change permissions 2022-11-01 19:24:26 +06:00
Oleg Kalachev
21423cee8e Fix 2022-11-01 17:50:09 +06:00
Oleg Kalachev
fb8110f62c Convert image to Parallels format 2022-10-31 18:02:07 +06:00
3 changed files with 17 additions and 13 deletions

View File

@@ -7,7 +7,6 @@ on:
branches: [ master ] branches: [ master ]
release: release:
types: [ created ] types: [ created ]
workflow_dispatch:
jobs: jobs:
build: build:
@@ -29,3 +28,15 @@ jobs:
AWS_ACCESS_KEY_ID=${{secrets.S3_KEY}} AWS_SECRET_ACCESS_KEY=${{secrets.S3_SECRET_KEY}} aws s3 sync . s3://clovervm/ --acl public-read --endpoint-url https://ams3.digitaloceanspaces.com --no-progress AWS_ACCESS_KEY_ID=${{secrets.S3_KEY}} AWS_SECRET_ACCESS_KEY=${{secrets.S3_SECRET_KEY}} aws s3 sync . s3://clovervm/ --acl public-read --endpoint-url https://ams3.digitaloceanspaces.com --no-progress
echo Uploaded https://clovervm.ams3.digitaloceanspaces.com/$(ls) echo Uploaded https://clovervm.ams3.digitaloceanspaces.com/$(ls)
working-directory: output-virtualbox-ovf working-directory: output-virtualbox-ovf
- name: Install ovftool
run: sudo installer -pkg "VMware OVF Tool.pkg" -target /
- name: Convert to Parallels
run: |
mkdir parallels
/Applications/VMware\ OVF\ Tool/ovftool --lax output-virtualbox-ovf/*.ova parallels/clover-devel.vmx
ls -lh parallels
- name: Upload Parallels image
run: |
AWS_ACCESS_KEY_ID=${{secrets.S3_KEY}} AWS_SECRET_ACCESS_KEY=${{secrets.S3_SECRET_KEY}} aws s3 sync . s3://clovervm/ --acl public-read --endpoint-url https://ams3.digitaloceanspaces.com --no-progress
echo Uploaded https://clovervm.ams3.digitaloceanspaces.com/$(ls)
working-directory: parallels

BIN
VMware OVF Tool.pkg Normal file

Binary file not shown.

View File

@@ -43,7 +43,7 @@ source ~/catkin_ws/devel/setup.bash
echo "--- Getting Clover sources" echo "--- Getting Clover sources"
cd ~/catkin_ws/src cd ~/catkin_ws/src
git clone --depth 1 --branch v0.24-release https://github.com/CopterExpress/clover git clone --depth 1 https://github.com/CopterExpress/clover
git clone --depth 1 https://github.com/CopterExpress/ros_led git clone --depth 1 https://github.com/CopterExpress/ros_led
git clone --depth 1 https://github.com/ethz-asl/mav_comm git clone --depth 1 https://github.com/ethz-asl/mav_comm
@@ -55,7 +55,7 @@ echo "--- Installing Clover's Python dependencies"
sudo -E sh -c '/usr/bin/python3 -m pip install -r ~/catkin_ws/src/clover/clover/requirements.txt' sudo -E sh -c '/usr/bin/python3 -m pip install -r ~/catkin_ws/src/clover/clover/requirements.txt'
echo "--- Downloading PX4" echo "--- Downloading PX4"
git clone --recursive --depth 1 --branch v1.13.2 https://github.com/PX4/PX4-Autopilot.git ~/PX4-Autopilot git clone --recursive --depth 1 --branch v1.13.0 https://github.com/PX4/PX4-Autopilot.git ~/PX4-Autopilot
ln -s ~/PX4-Autopilot ~/catkin_ws/src/ ln -s ~/PX4-Autopilot ~/catkin_ws/src/
ln -s ~/PX4-Autopilot/Tools/sitl_gazebo ~/catkin_ws/src/ ln -s ~/PX4-Autopilot/Tools/sitl_gazebo ~/catkin_ws/src/
@@ -89,9 +89,6 @@ ln -s "." build/mavlink/mavlink # fix https://github.com/PX4/PX4-Autopilot/pull
echo "--- Building the workspace" echo "--- Building the workspace"
catkin_make -DCATKIN_WHITELIST_PACKAGES="" catkin_make -DCATKIN_WHITELIST_PACKAGES=""
echo "--- Running tests"
catkin_make run_tests && catkin_test_results
echo "--- Installing Visual Studio Code" echo "--- Installing Visual Studio Code"
sudo -E sh -c 'apt-get update; apt-get install -y curl' sudo -E sh -c 'apt-get update; apt-get install -y curl'
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > ${HOME}/packages.microsoft.gpg curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > ${HOME}/packages.microsoft.gpg
@@ -152,10 +149,9 @@ sed "s/pi/${USER}/g" ${HOME}/catkin_ws/src/clover/builder/assets/monkey | sudo t
sudo -E sh -c "sed -i 's/SymLink Off/SymLink On/' /etc/monkey/monkey.conf" sudo -E sh -c "sed -i 's/SymLink Off/SymLink On/' /etc/monkey/monkey.conf"
sudo cp ${HOME}/catkin_ws/src/clover/builder/assets/monkey.service /etc/systemd/system/monkey.service sudo cp ${HOME}/catkin_ws/src/clover/builder/assets/monkey.service /etc/systemd/system/monkey.service
sudo systemctl enable monkey sudo systemctl enable monkey
rosrun clover www # create directory to serve
echo "--- Installing additional packages" echo "--- Installing additional packages"
sudo -E sh -c 'apt-get update; apt-get install -y sshfs gvfs-fuse gvfs-backends python3-opencv byobu ipython3 byobu nmap lsof tmux vim ros-noetic-usb-cam ros-noetic-rqt-multiplot ros-noetic-image-view' sudo -E sh -c 'apt-get update; apt-get install -y sshfs gvfs-fuse gvfs-backends python3-opencv byobu ipython3 byobu nmap lsof tmux vim ros-noetic-rqt-multiplot ros-noetic-image-view'
echo "--- Personalizing VM" echo "--- Personalizing VM"
sudo -E sh -c 'cp /usr/share/xfce4/backdrops/xubuntu-wallpaper.png /usr/share/xfce4/backdrops/xubuntu-wallpaper-old.png; cp ${HOME}/Pictures/Logo_COEX_2019_white_on_black.png /usr/share/xfce4/backdrops/xubuntu-wallpaper.png' sudo -E sh -c 'cp /usr/share/xfce4/backdrops/xubuntu-wallpaper.png /usr/share/xfce4/backdrops/xubuntu-wallpaper-old.png; cp ${HOME}/Pictures/Logo_COEX_2019_white_on_black.png /usr/share/xfce4/backdrops/xubuntu-wallpaper.png'
@@ -186,6 +182,7 @@ pip --version
pip3 --version pip3 --version
monkey --version monkey --version
systemctl --version systemctl --version
# TODO: add Python tests
roscore -h roscore -h
rosversion px4 rosversion px4
@@ -211,12 +208,8 @@ make px4_sitl # regular sitl build
# make px4_fmu-v4_default # make px4_fmu-v4_default
make clean make clean
echo "--- Run Clover's Python and shell tests" echo "--- Run Clover's Python libraries validation"
source ~/catkin_ws/devel/setup.bash
export VM=1
$HOME/catkin_ws/src/clover/builder/test/tests.py
$HOME/catkin_ws/src/clover/builder/test/tests_py3.py $HOME/catkin_ws/src/clover/builder/test/tests_py3.py
$HOME/catkin_ws/src/clover/builder/test/tests.sh
echo "--- Versions of all installed ROS packages" echo "--- Versions of all installed ROS packages"
set +x set +x