Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
040dc8d
Added python limited API support
asenyaev Dec 15, 2021
fd3bf88
Merge pull request #595 from asenyaev/asen/python_limited_api
asenyaev Dec 15, 2021
edd6b14
Changed a path to config-X.py file after python limited API support, …
asenyaev Dec 15, 2021
c1ca98c
Merge pull request #596 from asenyaev/asen/config_version
asenyaev Dec 16, 2021
cc12af6
Updated commits to 4.5.5 release
asenyaev Dec 25, 2021
ec7b7e4
Added openexr build flag
asenyaev Dec 26, 2021
569acce
Merge pull request #598 from asenyaev/asen/4.5.5_release
asenyaev Dec 27, 2021
0a17e6c
Updated dependencies to the latest releases (openssl and ffmpeg) in a…
asenyaev Jan 24, 2022
0066feb
Added versions of dependecies as arguments in dockerfiles
asenyaev Jan 25, 2022
209d32e
Merge pull request #617 from asenyaev/asen/update_dockerfile
asenyaev Jan 25, 2022
700cb00
Defined static version of windows server
asenyaev Mar 3, 2022
141a763
Updated MSBuild action
asenyaev Mar 3, 2022
602a8be
Defined ffmpeg version for macos (4.4.1) and fixed MacOS build
asenyaev Mar 3, 2022
8880543
Merge pull request #632 from asenyaev/asen/fix_current_builds
asenyaev Mar 4, 2022
9de011e
Added pylint test
asenyaev Mar 22, 2022
1e26c5d
Pinned pylint version
asenyaev Mar 23, 2022
ed16e8e
Changed using custom test for pylint to opencv sample
asenyaev Mar 23, 2022
623401a
Merge pull request #638 from asenyaev/asen/pylint_test
asenyaev Mar 24, 2022
3a4c30e
Added pre-downloaded 3rdparty files to source packages
asenyaev Mar 24, 2022
65f12d9
Merge pull request #639 from asenyaev/asen/pre_downloaded_files
asenyaev Mar 25, 2022
7ba53fc
Revert changes for pre-downloaded files
asenyaev Mar 25, 2022
ad01042
Skip only gapi if it was not found
asenyaev Mar 25, 2022
9ad778e
Merge pull request #641 from asenyaev/asen/revert_pre_downloaded_files
asenyaev Mar 25, 2022
f68be38
Skip only gapi if it was not found
asenyaev Mar 25, 2022
cd0476f
Merge branch 'asen/skip_gapi' of https://github.com/asenyaev/opencv-p…
asenyaev Mar 25, 2022
96cffde
Synchronize with scikit-build
Mar 21, 2022
0eb6c12
Merge pull request #642 from asenyaev/asen/skip_gapi
asenyaev Mar 28, 2022
7419f58
add support for building windows/arm64 package
niyas-sait Mar 28, 2022
056f900
Merge pull request #637 from orbisvicis/master
asenyaev Apr 7, 2022
4b068fc
Pinned versions for dependencies
asenyaev Apr 7, 2022
f89dca7
Downgraded cmake version
asenyaev Apr 8, 2022
443b747
Downgraded cmake version to 3.1
asenyaev Apr 8, 2022
8f2049e
Merge pull request #652 from asenyaev/asen/pinned_dependencies
asenyaev Apr 8, 2022
5de8d66
Merge pull request #644 from nsait-linaro/windows-arm64
asmorkalov Apr 12, 2022
3ac27ad
Updated dependecies for the next release
asenyaev May 30, 2022
4f8289d
Updated dependecies for the next release
asenyaev May 31, 2022
f2f924c
Merge pull request #666 from asenyaev/asen/update_all_dependencies
asmorkalov May 31, 2022
9ec924e
Updated submodules to the latest commits
asenyaev May 31, 2022
df365e5
Check changes on 3.4 branch in PRs
asenyaev May 31, 2022
5633cf3
Removed unused lines
asenyaev May 31, 2022
04b1a52
Updated submodules to 4.6.0 release
asenyaev Jun 5, 2022
b45a6a9
Merge pull request #668 from asenyaev/asen/check_latest_commits_4.x
asenyaev Jun 6, 2022
8d04505
Changed format of an archive for source packages
asenyaev Jun 8, 2022
009743d
Merge pull request #672 from asenyaev/asen/change_format_for_source_p…
asmorkalov Jun 10, 2022
54473f1
Updated multibuild to upgrade default 64-bit test image to focal
radarhere Jun 24, 2022
fcc900e
Merge pull request #684 from radarhere/multibuild
asenyaev Jun 24, 2022
4638ce5
Changed labeles for macOS ARM64 and Linux ARM64 builds (#681)
asenyaev Jul 4, 2022
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
117 changes: 66 additions & 51 deletions .github/workflows/build_wheels_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
branches:
- master
- 3.4
paths-ignore:
- '.github/workflows/build_wheels_linux_arm.yml'
- '.github/workflows/build_wheels_windows*'
Expand All @@ -14,21 +15,18 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-20.04
defaults:
run:
shell: bash

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
python-version: ['3.6']
platform: [x64]
with_contrib: [0, 1]
without_gui: [0, 1]
build_sdist: [0]

env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
REPO_DIR: .
Expand All @@ -37,64 +35,93 @@ jobs:
MB_PYTHON_VERSION: ${{ matrix.python-version }}
TRAVIS_PYTHON_VERSION: ${{ matrix.python-version }}
MB_ML_VER: 2014
NP_TEST_DEP: numpy==1.19.4
NP_TEST_DEP_LATEST: numpy==1.21.2
TRAVIS_BUILD_DIR: ${{ github.workspace }}
CONFIG_PATH: travis_config.sh
DOCKER_IMAGE: quay.io/asenyaev/manylinux2014_${PLAT}
USE_CCACHE: 1
DOCKER_IMAGE: quay.io/opencv-ci/opencv-python-manylinux2014-x86-64:20220628
USE_CCACHE: 0
UNICODE_WIDTH: 32
PLAT: x86_64
SDIST: ${{ matrix.build_sdist || 0 }}
ENABLE_HEADLESS: ${{ matrix.without_gui }}
ENABLE_CONTRIB: ${{ matrix.with_contrib }}

steps:
- name: Cleanup
run: find . -mindepth 1 -delete
working-directory: ${{ github.workspace }}
- name: Checkout
uses: actions/checkout@v2
with:
submodules: false
fetch-depth: 0

- name: Update submodules
if: github.event_name == 'pull_request'
run: git submodule update --remote

- name: Setup Environment variables
run: |
if [ "schedule" == "${{ github.event_name }}" ]; then echo "TRAVIS_EVENT_TYPE=cron" >> $GITHUB_ENV; else echo "TRAVIS_EVENT_TYPE=${{ github.event_name }}" >> $GITHUB_ENV; fi
if [ "schedule" == "${{ github.event_name }}" ]; then echo "BUILD_COMMIT=master" >> $GITHUB_ENV; else echo "BUILD_COMMIT=$BUILD_COMMIT" >> $GITHUB_ENV; fi
if [ "x64" == "${{ matrix.platform }}" ]; then echo "PLAT=x86_64" >> $GITHUB_ENV; fi
if [ "3.10" == "${{ matrix.python-version }}" ]; then echo "TEST_DEPENDS=$(echo $NP_TEST_DEP_LATEST)" >> $GITHUB_ENV; else echo "TEST_DEPENDS=$(echo $NP_TEST_DEP)" >> $GITHUB_ENV; fi

- name: build
- name: Build a package
run: source scripts/build.sh

- name: install and test
run: source scripts/install.sh

- name: saving artifacts
- name: Saving all wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: wheelhouse/opencv*.whl
- name: Saving a wheel accordingly to matrix
uses: actions/upload-artifact@v2
with:
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
path: wheelhouse/opencv*.whl

test:
needs: [build]
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
platform: [x64]
with_contrib: [0, 1]
without_gui: [0, 1]
build_sdist: [0]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
MB_PYTHON_VERSION: ${{ matrix.python-version }}
NP_TEST_DEP: numpy==1.19.4
NP_TEST_DEP_LATEST: numpy==1.21.2
CONFIG_PATH: travis_config.sh
PLAT: x86_64
steps:
- name: Cleanup
run: find . -mindepth 1 -delete
working-directory: ${{ github.workspace }}
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Setup Environment variables
run: if [ "3.10" == "${{ matrix.python-version }}" ]; then echo "TEST_DEPENDS=$(echo $NP_TEST_DEP_LATEST)" >> $GITHUB_ENV; else echo "TEST_DEPENDS=$(echo $NP_TEST_DEP)" >> $GITHUB_ENV; fi
- name: Download a wheel accordingly to matrix
uses: actions/download-artifact@v2
with:
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
path: wheelhouse/
- name: Package installation and run tests
run: source scripts/install.sh

build_sdist:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-20.04
defaults:
run:
shell: bash

strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.8]
platform: [x64]
with_contrib: [0, 1]
without_gui: [0, 1]
build_sdist: [1]

env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
REPO_DIR: .
Expand All @@ -107,48 +134,41 @@ jobs:
NP_TEST_DEP: numpy==1.19.4
TRAVIS_BUILD_DIR: ${{ github.workspace }}
CONFIG_PATH: travis_config.sh
DOCKER_IMAGE: quay.io/asenyaev/manylinux2014_${PLAT}
DOCKER_IMAGE: quay.io/opencv-ci/opencv-python-manylinux2014-x86-64:20220628
USE_CCACHE: 1
UNICODE_WIDTH: 32
SDIST: ${{ matrix.build_sdist || 0 }}
ENABLE_HEADLESS: ${{ matrix.without_gui || 0 }}
ENABLE_CONTRIB: ${{ matrix.with_contrib || 0 }}

steps:
- name: Cleanup
run: find . -mindepth 1 -delete
working-directory: ${{ github.workspace }}
- name: Checkout
uses: actions/checkout@v2
with:
submodules: false
fetch-depth: 0

- name: Update submodules
if: github.event_name == 'pull_request'
run: git submodule update --remote

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.platform }}

- name: Setup Environment variables
run: |
if [ "schedule" == "${{ github.event_name }}" ]; then echo "TRAVIS_EVENT_TYPE=cron" >> $GITHUB_ENV; else echo "TRAVIS_EVENT_TYPE=${{ github.event_name }}" >> $GITHUB_ENV; fi
if [ "schedule" == "${{ github.event_name }}" ]; then echo "BUILD_COMMIT=master" >> $GITHUB_ENV; else echo "BUILD_COMMIT=$BUILD_COMMIT" >> $GITHUB_ENV; fi

- name: before install
- name: Build a package
run: |
set -e
# Build and package
set -x
python -m pip install --upgrade pip
python -m pip install scikit-build
python setup.py sdist
python setup.py sdist --formats=gztar
set +x
# Install and run tests
set -x
echo "skipping tests because of sdist"

- name: saving artifacts
uses: actions/upload-artifact@v2
with:
Expand All @@ -157,8 +177,8 @@ jobs:

test_release_opencv_python:
if: github.event_name == 'release' && github.event.release.prerelease
needs: [build, build_sdist]
runs-on: ubuntu-latest
needs: [build, build_sdist, test]
runs-on: ubuntu-20.04
environment: test-opencv-python-release
defaults:
run:
Expand All @@ -168,16 +188,15 @@ jobs:
with:
name: wheels
path: wheelhouse/

- name: Upload all wheels
run: |
python -m pip install twine
python -m twine upload --repository testpypi -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} --skip-existing wheelhouse/opencv_* wheelhouse/opencv-*

release_opencv_python:
if: github.event_name == 'release' && !github.event.release.prerelease
needs: [build, build_sdist]
runs-on: ubuntu-latest
needs: [build, build_sdist, test]
runs-on: ubuntu-20.04
environment: opencv-python-release
defaults:
run:
Expand All @@ -187,22 +206,18 @@ jobs:
with:
name: wheels
path: wheelhouse/

- name: Upload wheels for opencv_python
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_PYTHON_USERNAME }} -p ${{ secrets.OPENCV_PYTHON_PASSWORD }} --skip-existing wheelhouse/opencv_python-* wheelhouse/opencv-python-[^h]*

- name: Upload wheels for opencv_contrib_python
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_CONTRIB_PYTHON_USERNAME }} -p ${{ secrets.OPENCV_CONTRIB_PYTHON_PASSWORD }} --skip-existing wheelhouse/opencv_contrib_python-* wheelhouse/opencv-contrib-python-[^h]*

- name: Upload wheels for opencv_python_headless
run: |
python -m pip install twine
python -m twine upload -u ${{ secrets.OPENCV_PYTHON_HEADLESS_USERNAME }} -p ${{ secrets.OPENCV_PYTHON_HEADLESS_PASSWORD }} --skip-existing wheelhouse/opencv_python_headless-* wheelhouse/opencv-python-headless-*

- name: Upload wheels for opencv_contrib_python_headless
run: |
python -m pip install twine
Expand Down
Loading