Skip to content

FW: OAK-D-SR-PoE R1 fixes for fsync detect and status LED (green when… #50

FW: OAK-D-SR-PoE R1 fixes for fsync detect and status LED (green when…

FW: OAK-D-SR-PoE R1 fixes for fsync detect and status LED (green when… #50

name: OS Support
on:
workflow_dispatch:
push:
paths:
- 'docs/source/_static/install_dependencies.sh'
- 'examples/install_requirements.py'
pull_request:
paths:
- 'docs/source/_static/install_dependencies.sh'
- 'examples/install_requirements.py'
jobs:
test_linux:
runs-on: ubuntu-latest
strategy:
matrix:
container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04", "ubuntu:22.10"]
container:
image: ${{ matrix.container_image }}
steps:
- uses: actions/checkout@v3
- name: Install sudo
if: startsWith(matrix.container_image, 'fedora') == true
run: yum update -y && yum install -y sudo
- name: Install sudo
if: startsWith(matrix.container_image, 'ubuntu') == true
run: apt-get update -qq && apt-get -qq install sudo
- name: Install dependencies
run: |
ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone # Otherwise tzdata installer prompts for user input
sed '/udevadm control --reload-rules && sudo udevadm trigger/d' docs/source/_static/install_dependencies.sh > tmp_script.sh # Doesn't work on docker
bash tmp_script.sh
- name: Install example requirements
run: |
python3 examples/install_requirements.py
test_macos:
strategy:
matrix:
os: ["macos-11", "macos-12"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sed '/udevadm control --reload-rules && sudo udevadm trigger/d' docs/source/_static/install_dependencies.sh > tmp_script.sh
bash tmp_script.sh
- name: Install example requirements
run: |
python3 examples/install_requirements.py
test_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Download chocolatey
shell: pwsh
run: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- name: Install dependencies
shell: pwsh
run: choco install cmake git python --version 3.10 -y
- name: Install example requrirements
run: |
python examples/install_requirements.py