Skip to content

Commit

Permalink
hopefully fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lianachiley committed Mar 7, 2024
1 parent fd51ccf commit c01c88b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,15 @@ jobs:
- uses: pguyot/arm-runner-action@HEAD
id: install_deps
with:
image_additional_mb: 1500
image_additional_mb: 3000
bind_mount_repository: true
base_image: https://github.com/Joshua-Riek/ubuntu-rockchip/releases/download/v1.30/ubuntu-22.04.3-preinstalled-server-arm64-orangepi-5.img.xz
commands: |
useradd polaris -b /home
usermod -a -G sudo polaris
mkdir /home/polaris
chown -R polaris /home/polaris
echo "polaris:polaris" | chpasswd
git clone https://github.com/3015RangerRobotics/polaris.git /opt/polaris
cd /opt/polaris
chmod +x setup.sh
Expand Down
3 changes: 1 addition & 2 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Install pre-reqs
sudo apt update
sudo apt install -y python3-pip
sudo apt install -y --no-install-recommends gstreamer1.0-gl gstreamer1.0-opencv gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-tools libgstreamer-plugins-base1.0-dev libgstreamer1.0-0 libgstreamer1.0-dev
sudo apt install -y --no-install-recommends python3-pil gstreamer1.0-gl gstreamer1.0-opencv gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-tools libgstreamer-plugins-base1.0-dev libgstreamer1.0-0 libgstreamer1.0-dev

# Build OpenCV w/ gstreamer
git clone --depth 1 --recurse-submodules --shallow-submodules https://github.com/opencv/opencv-python.git
Expand All @@ -15,7 +15,6 @@ pip wheel . --verbose
sudo pip install opencv_python*.whl

# Install other python deps
sudo apt install -y python3-pil
sudo pip install --extra-index-url https://wpilib.jfrog.io/artifactory/api/pypi/wpilib-python-release-2024/simple/ robotpy

# Cleanup
Expand Down

0 comments on commit c01c88b

Please sign in to comment.