Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
d165fa2
Update build_wheels_linux.yml
avdivan Oct 20, 2025
3a607e0
Update build_wheels_linux.yml
avdivan Oct 20, 2025
5fcdfe9
Update build_wheels_linux.yml
avdivan Oct 21, 2025
8ea852c
Update build_wheels_linux.yml
avdivan Oct 21, 2025
9ffd9e0
Update build_wheels_linux.yml
avdivan Oct 21, 2025
e5ae686
Update build_wheels_linux.yml
avdivan Oct 21, 2025
ec4de44
Update build_wheels_linux.yml
avdivan Oct 21, 2025
fc6b7cd
Update build_wheels_linux.yml
avdivan Oct 22, 2025
31530dc
Update build_wheels_linux.yml
avdivan Oct 22, 2025
5ac8a22
Update build_wheels_linux.yml
avdivan Oct 22, 2025
ec815b0
Update build.sh
avdivan Oct 22, 2025
336520c
Update build.sh
avdivan Oct 22, 2025
8a7531f
Update build_wheels_linux.yml
avdivan Oct 22, 2025
f10956e
Update build_wheels_linux.yml
avdivan Oct 22, 2025
503b687
Update build_wheels_linux.yml
avdivan Oct 22, 2025
004547e
Update build_wheels_linux.yml
avdivan Oct 26, 2025
2c96bb6
Update build_wheels_linux.yml
avdivan Oct 26, 2025
616034a
Update build_wheels_linux.yml
avdivan Oct 26, 2025
b59224a
Update build_wheels_linux.yml
avdivan Oct 26, 2025
8a1f1c0
Update build_wheels_linux.yml
avdivan Oct 26, 2025
b800cd7
Update build_wheels_linux.yml
avdivan Oct 26, 2025
d93d7ae
Update build_wheels_linux.yml
avdivan Oct 26, 2025
f9f06cc
Update travis_config.sh
avdivan Oct 26, 2025
ab7b5d7
Update build_wheels_linux.yml
avdivan Oct 27, 2025
0b3fd54
Update build_wheels_linux.yml
avdivan Nov 3, 2025
bbf5af0
Update install.sh
avdivan Nov 3, 2025
fd4587e
Update build_wheels_linux.yml
avdivan Nov 5, 2025
1562be6
Update install.sh
avdivan Nov 5, 2025
94a9a24
Update build_wheels_linux.yml
avdivan Nov 5, 2025
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
44 changes: 30 additions & 14 deletions .github/workflows/build_wheels_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,34 +18,40 @@ on:

jobs:
Build:
runs-on: ubuntu-22.04
runs-on: ${{ matrix.platform == 'aarch64' && 'opencv-cn-lin-arm64' || 'ubuntu-22.04' }}
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
python-version: ['3.9']
platform: [x64]
with_contrib: [0, 1]
without_gui: [0, 1]
matrix:
python-version: ['3.9']
platform: [x86_64, aarch64]
manylinux: [2014, 2_28]
with_contrib: [0, 1]
without_gui: [0, 1]
build_sdist: [0]
exclude:
- platform: aarch64
manylinux: 2014

env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
REPO_DIR: .
PROJECT_SPEC: opencv-python
MB_PYTHON_VERSION: ${{ matrix.python-version }}
TRAVIS_PYTHON_VERSION: ${{ matrix.python-version }}
MB_ML_VER: 2014
MB_ML_VER: ${{ matrix.manylinux }}
TRAVIS_BUILD_DIR: ${{ github.workspace }}
CONFIG_PATH: travis_config.sh
DOCKER_IMAGE: quay.io/opencv-ci/opencv-python-manylinux2014-x86-64:20250630
DOCKER_IMAGE: ${{ matrix.manylinux == '2014' && (matrix.platform == 'x86_64' && 'quay.io/opencv-ci/opencv-python-manylinux2014-x86-64:20250630') || '' || (matrix.platform == 'x86_64' && 'quay.io/opencv-ci/opencv-python-manylinux_2_28-x86-64:20251013') || 'quay.io/opencv-ci/opencv-python-manylinux_2_28-aarch64:20251013' }}
USE_CCACHE: 0
UNICODE_WIDTH: 32
PLAT: x86_64
PLAT: ${{ matrix.platform == 'x86_64' && 'x86_64' || 'aarch64' }}
SDIST: ${{ matrix.build_sdist || 0 }}
ENABLE_HEADLESS: ${{ matrix.without_gui }}
ENABLE_CONTRIB: ${{ matrix.with_contrib }}

steps:
- name: Cleanup
run: find . -mindepth 1 -delete
Expand All @@ -60,35 +66,44 @@ jobs:
with:
submodules: false
fetch-depth: 0

- name: Build a package
run: source scripts/build.sh
- name: Saving a wheel accordingly to matrix
uses: actions/upload-artifact@v4
with:
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
name: wheel-${{ matrix.platform }}-${{ matrix.manylinux }}-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
path: wheelhouse/opencv*.whl

Test:
needs: [Build]
runs-on: ubuntu-22.04
runs-on: ${{ matrix.platform == 'aarch64' && 'opencv-cn-lin-arm64' || 'ubuntu-22.04' }}
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
platform: [x64]
platform: [x86_64, aarch64]
manylinux: [2014, 2_28]
with_contrib: [0, 1]
without_gui: [0, 1]
build_sdist: [0]
exclude:
- platform: aarch64
manylinux: 2014

env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
MB_PYTHON_VERSION: ${{ matrix.python-version }}
NP_TEST_DEP: numpy==1.19.4
NP_TEST_DEP_LATEST: numpy==2.2.6
CONFIG_PATH: travis_config.sh
PLAT: x86_64
PLAT: ${{ matrix.platform == 'x86_64' && 'x86_64' || 'aarch64' }}
SDIST: ${{ matrix.build_sdist || 0 }}
ENABLE_HEADLESS: ${{ matrix.without_gui }}
ENABLE_CONTRIB: ${{ matrix.with_contrib }}
steps:
- name: Cleanup
run: find . -mindepth 1 -delete
Expand All @@ -98,12 +113,13 @@ jobs:
with:
submodules: true
fetch-depth: 0

- name: Setup Environment variables
run: if [ "3.10" == "${{ matrix.python-version }}" -o "3.11" == "${{ matrix.python-version }}" -o "3.12" == "${{ matrix.python-version }}" -o "3.13" == "${{ 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@v4
with:
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
name: wheel-${{ matrix.platform }}-${{ matrix.manylinux }}-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
path: wheelhouse/
- name: Package installation and run tests
run: source scripts/install.sh
Expand Down
2 changes: 1 addition & 1 deletion travis_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ else
CURRENT_ARCH=$(uname -m)
if [[ $CURRENT_ARCH == 'aarch64' ]]; then
# To avoid network issues with pypi.org on OpenCV CN machines
export PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple
export PIP_INDEX_URL=https://pypi.org/simple
echo "Running for linux aarch64"
fi
fi
Expand Down
Loading