diff --git a/.github/workflows/docker-hub.yml b/.github/workflows/docker-hub.yml deleted file mode 100644 index 3caec9d99..000000000 --- a/.github/workflows/docker-hub.yml +++ /dev/null @@ -1,100 +0,0 @@ -name: Publish Docker image -on: - workflow_dispatch: - push: - branches: - - main - - develop - tags: - - 'v*' -jobs: - - build: - runs-on: ${{ matrix.os }} - strategy: - matrix: - os: [ubuntu-latest, [Linux, ARM], [Linux, ARM64]] - include: - - os: ubuntu-latest - arch: amd64 - - os: [Linux, ARM] - arch: armv7 - - os: [Linux, ARM64] - arch: armv8 - steps: - - name: Clean the workspace - uses: docker://alpine - with: - args: /bin/sh -c "rm -rf /github/workspace/.* || rm -rf /github/workspace/*" - - name: Checkout - uses: actions/checkout@v3 - with: - submodules: recursive - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USER }} - password: ${{ secrets.DOCKERHUB_PASS }} - - - name: Set Image Name (development) - id: name - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "LUXONIS_IMAGE_TAG=${{ github.sha }}-${{ matrix.arch }}" >> $GITHUB_ENV - - - name: Set Image Name (release) - if: startsWith(github.ref, 'refs/tags/v') == true - run: echo "LUXONIS_IMAGE_TAG=${GITHUB_REF#refs/*/}-${{ matrix.arch }}" >> $GITHUB_ENV - - - name: Build and push - uses: docker/build-push-action@v3 - with: - push: true - file: ci/Dockerfile - tags: luxonis/depthai-library:${{ env.LUXONIS_IMAGE_TAG }} - - - name: Cleanup the created image - run: docker image rm luxonis/depthai-library:${{ env.LUXONIS_IMAGE_TAG }} - - upload: - needs: [build] - name: Combine into a single multi-arch image and upload tags - runs-on: ubuntu-latest - steps: - - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USER }} - password: ${{ secrets.DOCKERHUB_PASS }} - - - name: Get Version - id: vars - run: echo ::set-output name=short_ref::${GITHUB_REF#refs/*/} - - - name: Build and push (development) - if: startsWith(github.ref, 'refs/tags/v') != true - run: | - docker manifest create \ - luxonis/depthai-library:${{ github.sha}} \ - --amend luxonis/depthai-library:${{ github.sha }}-amd64 \ - --amend luxonis/depthai-library:${{ github.sha }}-armv7 \ - --amend luxonis/depthai-library:${{ github.sha }}-armv8 - # Push - docker manifest push luxonis/depthai-library:${{ github.sha }} - - - name: Build and push (release) - if: startsWith(github.ref, 'refs/tags/v') == true - run: | - docker manifest create \ - luxonis/depthai-library:${{ steps.vars.outputs.short_ref }} \ - --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-amd64 \ - --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-armv7 \ - --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-armv8 - # Push - docker manifest push luxonis/depthai-library:${{ steps.vars.outputs.short_ref }} - docker manifest create \ - luxonis/depthai-library:latest \ - --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-amd64 \ - --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-armv7 \ - --amend luxonis/depthai-library:${{ steps.vars.outputs.short_ref }}-armv8 - docker manifest push luxonis/depthai-library:latest diff --git a/.github/workflows/install_requirements.yml b/.github/workflows/install_requirements.yml new file mode 100644 index 000000000..5770272be --- /dev/null +++ b/.github/workflows/install_requirements.yml @@ -0,0 +1,34 @@ + name: Test requirements installation + + on: + workflow_dispatch: + push: + paths: + - 'docs/source/_static/install_dependencies.sh' + - 'examples/install_requirements.py' + + # A workflow run is made up of one or more jobs that can run sequentially or in parallel + jobs: + install_dependencies: + runs-on: ubuntu-latest + strategy: + matrix: + container_image: ["fedora:34", "fedora:35", "fedora:36", "ubuntu:18.04", "ubuntu:20.04", "ubuntu:22.04"] + 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 python3 python3-pip sudo + - name: Install sudo + if: startsWith(matrix.container_image, 'ubuntu') == true + run: apt-get update -qq && apt-get -qq install sudo lsb-release + - name: Install dependencies + run: | + ln -snf /usr/share/zoneinfo/UTC /etc/localtime && echo UTC > /etc/timezone + 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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index e4145a19d..000000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,540 +0,0 @@ -name: Depthai Python CI/CD - -# Controls when the action will run. Triggers the workflow on push - -################################### -# WARNING ######################### -# as self-hosted runners are used, and security policy for them has not been yet determined by GitHub -# pay close attention to not enable workflows on pull_request events -# TLDR: do NOT add 'pull_request' here for the time being -on: - workflow_dispatch: - push: - branches: - - main - - develop - - gen2 - - gen2_develop - tags: - - 'v*' - -################################### -################################### - -env: - CMAKE_WINDOWS_SDK_VERSION: '10.0.18362.0' - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - - # Job which builds docstrings for the rest of the wheel builds - build-docstrings: - runs-on: ubuntu-latest - steps: - - name: Cache .hunter folder - uses: actions/cache@v3 - with: - path: ~/.hunter - key: hunter-ubuntu-latest - - name: List .hunter cache directory - run: ls -a -l ~/.hunter/_Base/ || true - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: 3.8 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - sudo apt install libusb-1.0-0-dev - python -m pip install -r docs/requirements_mkdoc.txt - - name: Configure project - run: cmake -S . -B build -DDEPTHAI_PYTHON_FORCE_DOCSTRINGS=ON -DDEPTHAI_PYTHON_DOCSTRINGS_OUTPUT="$PWD/docstrings/depthai_python_docstring.hpp" - - name: Build target 'pybind11_mkdoc' - run: cmake --build build --target pybind11_mkdoc --parallel 4 - - name: Upload docstring artifacts - uses: actions/upload-artifact@v3 - with: - name: docstrings - path: docstrings/ - retention-days: 1 - - - # Build and test bindings - pytest: - needs: build-docstrings - strategy: - matrix: - os: [ubuntu-latest, windows-latest, macos-latest] - runs-on: ${{ matrix.os }} - steps: - - name: Print home directory - run: echo Home directory inside container $HOME - - - name: Cache .hunter folder - if: matrix.os != 'windows-latest' - uses: actions/cache@v3 - with: - path: ~/.hunter/ - key: hunter-pytest-${{ matrix.os }} - - name: Cache .hunter folder - if: matrix.os == 'windows-latest' - uses: actions/cache@v3 - with: - path: C:/.hunter/ - key: hunter-pytest-${{ matrix.os }} - - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: "3.10" - - - name: Install dependencies (Ubuntu) - if: matrix.os == 'ubuntu-latest' - run: | - python -m pip install --upgrade pip - sudo apt install libusb-1.0-0-dev - - - name: Install dependencies (MacOS) - if: matrix.os == 'macos-latest' - run: | - python -m pip install --upgrade pip - brew install libusb - - - name: Install pytest - run: | - python -m pip install pytest numpy - - - name: Compile - run: | - cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp -D DEPTHAI_PYTHON_ENABLE_TESTS=ON - cmake --build build --parallel 4 - - name: Test - run: | - cmake --build build --target pytest --config Release - - - # This job builds wheels for armhf arch (RPi) - build-linux-armhf: - needs: build-docstrings - strategy: - matrix: - rpi-os: [rpi-buster, rpi-bullseye] - runs-on: ${{ matrix.rpi-os }} - steps: - - name: Print home directory - run: echo Home directory inside container $HOME - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV - - - name: Append build hash if not a tagged commit - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV - - name: Building wheel - run: python3 -m pip wheel . -w ./wheelhouse/ --verbose - - name: Auditing wheel - run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat linux_armv7l -w wheelhouse/audited/; done - - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh - env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} - - - # This job builds wheels for Windows x86_64 arch - build-windows-x86_64: - needs: build-docstrings - runs-on: windows-latest - strategy: - matrix: - python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11'] - python-architecture: [x64, x86] - fail-fast: false - steps: - - name: Cache .hunter folder - uses: actions/cache@v3 - with: - path: C:/.hunter - key: hunter-msvc - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - - - name: Select Windows SDK - run: echo "CMAKE_ARGS=-DCMAKE_SYSTEM_VERSION=${{ env.CMAKE_WINDOWS_SDK_VERSION }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - architecture: ${{ matrix.python-architecture }} - - name: Append build hash if not a tagged commit - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - - name: Install dependencies - run: | - python -m pip install --upgrade pip - - name: Building wheels - run: python -m pip wheel . -w ./wheelhouse/audited/ --verbose - - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh - env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} - - # This job builds wheels for macOS x86_64 arch - build-macos-x86_64: - needs: build-docstrings - runs-on: macos-latest - strategy: - matrix: - python-version: [3.6, 3.7, 3.8, 3.9, '3.10', '3.11'] - fail-fast: false - steps: - - name: Cache .hunter folder - uses: actions/cache@v3 - with: - path: ~/.hunter - key: hunter-macos-latest - - name: List .hunter cache directory - run: | - ls -a -l ~/.hunter/_Base/ || true - echo "PATH=$PATH" - - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Append build hash if not a tagged commit - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV - - name: Install dependencies - run: | - python -m pip install --upgrade pip - brew install libusb - python -m pip install delocate - - name: Set macos deployment target - run: echo "MACOSX_DEPLOYMENT_TARGET=10.9" >> $GITHUB_ENV - - name: Building wheels - run: python -m pip wheel . -w ./wheelhouse/ --verbose - - name: Auditing wheels - run: ci/repair-whl-macos.sh `pwd`/wheelhouse/* `pwd`/wheelhouse/audited - - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh - env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} - - # This job builds wheels for macOS arm64 arch - build-macos-arm64: - needs: build-docstrings - runs-on: [self-hosted, macOS, ARM64] - steps: - # Cached locally on runner - # - name: Cache .hunter folder - # uses: actions/cache@v3 - # with: - # path: ~/.hunter - # key: hunter-macos-latest - - name: List .hunter cache directory - run: | - ls -a -l ~/.hunter/_Base/ || true - echo "PATH=$PATH" - - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV - - - name: Append build hash if not a tagged commit - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV - - # - name: Build and install depthai-core - # run: | - # echo "MACOSX_DEPLOYMENT_TARGET=11.0" >> $GITHUB_ENV - # cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake - # cmake --build build_core --target install --parallel 4 - # echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV - - - name: Build wheels - run: for PYBIN in {9..11}; do "python3.${PYBIN}" -m pip wheel . -w wheelhouse/ --verbose; done - - - name: Auditing wheels - run: delocate-wheel -v -w wheelhouse/audited wheelhouse/*.whl - - - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh - env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} - - # This job builds wheels for x86_64 arch - build-linux-x86_64: - needs: build-docstrings - runs-on: ubuntu-latest - container: - image: quay.io/pypa/manylinux2014_x86_64:2022-10-30-402504a - env: - PLAT: manylinux2014_x86_64 - steps: - - name: Cache .hunter folder - uses: actions/cache@v3 - with: - path: ~/.hunter - key: hunter-x86_64 - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - name: Installing libusb1-devel dependency - run: yum install -y --disableplugin=fastestmirror libusb1-devel - - name: Installing cmake dependency - run: | - /opt/python/cp38-cp38/bin/python3.8 -m pip install cmake - ln -s /opt/python/cp38-cp38/bin/cmake /bin/ - - name: Create folder structure - run: mkdir -p wheelhouse/audited/ - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV - - - name: Build and install depthai-core - run: | - cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake - cmake --build build_core --target install --parallel 4 - echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV - - - name: Append build hash if not a tagged commit - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV - - - name: Building source distribution - run: | - /opt/python/cp38-cp38/bin/python3.8 setup.py sdist --formats=gztar - mv dist/* wheelhouse/audited/ - - name: Build wheels - run: for PYBIN in /opt/python/cp3{6..11}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done - - name: Audit wheels - run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done - - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh - env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} - - # This job builds wheels for ARM64 arch - build-linux-arm64: - needs: build-docstrings - runs-on: [self-hosted, linux, ARM64] - container: - image: quay.io/pypa/manylinux2014_aarch64:2022-10-30-402504a - env: - PLAT: manylinux2014_aarch64 - # Mount local hunter cache directory, instead of transfering to Github and back - volumes: - - /.hunter:/github/home/.hunter - steps: - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - name: Installing libusb1-devel dependency - run: yum install -y --disableplugin=fastestmirror libusb1-devel - - name: Installing cmake dependency - run: | - /opt/python/cp38-cp38/bin/python3.8 -m pip install cmake - ln -s /opt/python/cp38-cp38/bin/cmake /bin/ - - name: Create folder structure - run: mkdir -p wheelhouse/audited/ - - - uses: actions/download-artifact@v3 - with: - name: 'docstrings' - path: docstrings - - name: Specify docstring to use while building the wheel - run: echo "DEPTHAI_PYTHON_DOCSTRINGS_INPUT=$PWD/docstrings/depthai_python_docstring.hpp" >> $GITHUB_ENV - - - name: Build and install depthai-core - run: | - cmake -S depthai-core/ -B build_core -D CMAKE_BUILD_TYPE=Release -D CMAKE_TOOLCHAIN_FILE=$PWD/cmake/toolchain/pic.cmake - cmake --build build_core --target install --parallel 4 - echo "DEPTHAI_INSTALLATION_DIR=$PWD/build_core/install/" >> $GITHUB_ENV - - - name: Append build hash if not a tagged commit - if: startsWith(github.ref, 'refs/tags/v') != true - run: echo "BUILD_COMMIT_HASH=${{github.sha}}" >> $GITHUB_ENV - - name: Building wheels - run: for PYBIN in /opt/python/cp3{6..11}*/bin; do "${PYBIN}/pip" wheel . -w ./wheelhouse/ --verbose; done - - name: Auditing wheels - run: for whl in wheelhouse/*.whl; do auditwheel repair "$whl" --plat $PLAT -w wheelhouse/audited/; done - - name: Archive wheel artifacts - uses: actions/upload-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: Deploy wheels to artifactory (if not a release) - if: startsWith(github.ref, 'refs/tags/v') != true - run: bash ./ci/upload-artifactory.sh - env: - ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }} - ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }} - ARTIFACTORY_PASS: ${{ secrets.ARTIFACTORY_PASS }} - - release: - if: startsWith(github.ref, 'refs/tags/v') - needs: [pytest, build-linux-armhf, build-windows-x86_64, build-macos-x86_64, build-macos-arm64, build-linux-x86_64, build-linux-arm64] - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - # Get tag version - # TODO(themarpe) - Node12, has to be updated - - name: Get tag version - id: tag - uses: battila7/get-version-action@v2 - - - uses: actions/setup-python@v4 - with: - python-version: '3.8' - - - name: Check if version matches - run: python3.8 -c 'import find_version as v; exit(0) if "${{ steps.tag.outputs.version-without-v }}" == v.get_package_version() else exit(1)' - - # Create GitHub release - - uses: actions/create-release@master - id: createRelease - name: Create ${{ steps.tag.outputs.version-without-v }} depthai-core release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - body: | - ## Features - - ## Bug fixes - - ## Misc - - draft: true - - # Deploy to PyPi. Only when a commit is tagged - deploy-pypi: - if: startsWith(github.ref, 'refs/tags/v') - needs: [release] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - uses: actions/download-artifact@v3 - with: - name: audited-wheels - path: wheelhouse/audited/ - - name: List files - run: ls -lah - - name: Run deploy to PyPi - run: bash ./ci/upload-pypi.sh - env: - PYPI_SERVER: ${{ secrets.PYPI_SERVER }} - PYPI_USER: ${{ secrets.PYPI_USER }} - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - - notify_robothub: - if: startsWith(github.ref, 'refs/tags/v') - needs: [release] - runs-on: ubuntu-latest - steps: - - name: Repository Dispatch - uses: peter-evans/repository-dispatch@v2 - with: - token: ${{ secrets.REPO_ACCESS_TOKEN }} - repository: luxonis/robothub-apps - event-type: depthai-python-release - client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}' diff --git a/docs/source/_static/install_dependencies.sh b/docs/source/_static/install_dependencies.sh index 9267743d1..2328e0751 100755 --- a/docs/source/_static/install_dependencies.sh +++ b/docs/source/_static/install_dependencies.sh @@ -175,5 +175,6 @@ elif [ -f /etc/os-release ]; then sudo udevadm control --reload-rules && sudo udevadm trigger else echo "ERROR: Host not supported" + # exit 99 fi diff --git a/examples/install_requirements.py b/examples/install_requirements.py index 1bcd555fa..daf465df2 100755 --- a/examples/install_requirements.py +++ b/examples/install_requirements.py @@ -189,3 +189,5 @@ def hasWhitespace(string): SUGGESTION='echo "export OPENBLAS_CORETYPE=ARMV8" >> ~/.bashrc && source ~/.bashrc' print(f'{WARNING}WARNING:{LINE_CL} Need to set OPENBLAS_CORE_TYPE environment variable, otherwise opencv will fail with illegal instruction.') print(f'Run: {RED}{SUGGESTION}{LINE_CL}') + +#