Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/build-and-test-containers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Test viewer on Linux and macOS

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- ubuntu-24.04
- ubuntu-22.04
- macos-latest
- macos-14
- macos-13

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set execute permissions for install script
run: chmod +x docs/install_depthai.sh

- name: Run installation script
run: ./docs/install_depthai.sh

- name: Verify installation success
run: echo "Installation script executed successfully"
2 changes: 2 additions & 0 deletions .github/workflows/test-install-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
paths:
- 'docs/install_dependencies.sh'
- 'examples/install_requirements.py'
- 'docs/install_depthai.sh'
pull_request:
paths:
- 'docs/install_dependencies.sh'
- 'examples/install_requirements.py'
- 'docs/install_depthai.sh'

jobs:
test_linux:
Expand Down
19 changes: 8 additions & 11 deletions docs/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ readonly debian_pkgs=(
libtiff-dev
# https://stackoverflow.com/questions/55313610
ffmpeg
python3-venv
libsm6
libxext6
python3-pyqt5
Expand Down Expand Up @@ -117,12 +118,6 @@ readonly fedora_pkgs=(
# libsm6 libxext6 libgl1-mesa-glx
)

# Check Bash version
if [[ "${BASH_VERSINFO:-0}" -lt 4 ]]; then
echo "This script requires Bash 4.0 or higher. You are using Bash ${BASH_VERSION}. Please upgrade your Bash version."
exit 1
fi

print_action () {
green="\e[0;32m"
reset="\e[0;0m"
Expand All @@ -137,7 +132,12 @@ version_lte() {
[[ "$1" == "$(echo -e "$1\n$2" | sort -V | head -n1)" ]]
}

declare -A debian_versions=(


# Function to lookup and print Debian version number
lookup_debian_version_number() {

declare -A debian_versions=(
["trixie/sid"]="13"
["bookworm/sid"]="12"
["bullseye/sid"]="11"
Expand All @@ -147,10 +147,7 @@ declare -A debian_versions=(
["wheezy/sid"]="7"
["squeeze/sid"]="6"
)

# Function to lookup and print Debian version number
lookup_debian_version_number() {
debian_version_string="$1"
debian_version_string="$1"
version_number="${debian_versions[$debian_version_string]}"

if [ -n "$version_number" ]; then
Expand Down
Loading
Loading