-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v3_develop' of github.com:luxonis/depthai-core into moc…
…k_isp
- Loading branch information
Showing
960 changed files
with
87,823 additions
and
3,400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,16 @@ on: | |
branches: | ||
- main | ||
- develop | ||
- gen2 | ||
- gen2_develop | ||
- rvc3_support | ||
- rvc3_develop | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
branches: | ||
- main | ||
- develop | ||
- gen2 | ||
- gen2_develop | ||
- rvc3_support | ||
- rvc3_develop | ||
|
||
jobs: | ||
|
||
|
@@ -63,10 +63,10 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
cmake: ['3.10.x', ''] # Older version (Ubuntu 18.04) and newest | ||
cmake: ['3.14.x', ''] # Older version (Ubuntu 18.04) and newest | ||
exclude: | ||
- os: windows-latest | ||
cmake: '3.10.x' | ||
cmake: '3.14.x' | ||
|
||
steps: | ||
- name: Cache .hunter folder | ||
|
@@ -109,7 +109,7 @@ jobs: | |
echo "OpenCV_DIR=C:\tools\opencv\build" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
- name: Build (old CMake, gcc/Clang) | ||
if: matrix.cmake == '3.10.x' && matrix.os != 'windows-latest' | ||
if: matrix.cmake == '3.14.x' && matrix.os != 'windows-latest' | ||
run: | | ||
cmake -H. -Bbuild -D'CMAKE_BUILD_TYPE=Release' -D'HUNTER_CONFIGURATION_TYPES=Release' -D'DEPTHAI_BUILD_EXAMPLES=ON' -D'DEPTHAI_BUILD_TESTS=ON' ${{ env.CMAKE_ARGS }} | ||
cmake --build build --config Release -- -j4 | ||
|
@@ -122,7 +122,7 @@ jobs: | |
# cmake --build build | ||
|
||
- name: Build (newest CMake) | ||
if: matrix.cmake != '3.10.x' | ||
if: matrix.cmake != '3.14.x' | ||
run: | | ||
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D HUNTER_CONFIGURATION_TYPES=Release -D DEPTHAI_BUILD_EXAMPLES=ON -D DEPTHAI_BUILD_TESTS=ON ${{ env.CMAKE_ARGS }} | ||
cmake --build build --parallel 4 --config Release | ||
|
@@ -181,6 +181,9 @@ jobs: | |
echo "CMAKE_GENERATOR=Visual Studio 17 2022" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
echo "CMAKE_GENERATOR_PLATFORM=${{ matrix.platform }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
|
||
- name: Configure ${{ matrix.build-type }}, shared ${{ matrix.shared }}, ${{ matrix.platform }} | ||
run: cmake -S . -B build -D BUILD_SHARED_LIBS=${{ matrix.shared}} -D CMAKE_BUILD_TYPE=${{ matrix.build-type }} -D CMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/depthai_install ${{ env.CMAKE_ARGS }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
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: bindings/python/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 |
Oops, something went wrong.