Skip to content

Commit 2d31a1b

Browse files
committed
Merge remote-tracking branch 'upstream/4.x' into single-ci-workflow
2 parents 69e5bc6 + 031876b commit 2d31a1b

3 files changed

Lines changed: 12 additions & 133 deletions

File tree

‎.github/workflows/build_wheels_macos.yml‎

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: macOS x86_64
1+
name: MacOS
22

33
on:
44
pull_request:
@@ -8,7 +8,6 @@ on:
88
paths-ignore:
99
- '.github/workflows/build_wheels_manylinux*'
1010
- '.github/workflows/build_wheels_windows*'
11-
- '.github/workflows/build_wheels_macos_m1.yml'
1211
workflow_call:
1312
inputs:
1413
enable-rolling:
@@ -18,12 +17,12 @@ on:
1817

1918
jobs:
2019
Build:
21-
runs-on: macos-15-intel
20+
runs-on: ${{ matrix.platform == 'arm64' && 'macos-15' || 'macos-15-intel' }}
2221
strategy:
2322
fail-fast: false
2423
matrix:
2524
python-version: ['3.10']
26-
platform: [x64]
25+
platform: [x86_64, arm64]
2726
with_contrib: [0, 1]
2827
without_gui: [0, 1]
2928
build_sdist: [0]
@@ -40,7 +39,7 @@ jobs:
4039
CONFIG_PATH: travis_config.sh
4140
USE_CCACHE: 1
4241
UNICODE_WIDTH: 32
43-
PLAT: x86_64
42+
PLAT: ${{ matrix.platform }}
4443
SDIST: ${{ matrix.build_sdist || 0 }}
4544
ENABLE_HEADLESS: ${{ matrix.without_gui }}
4645
ENABLE_CONTRIB: ${{ matrix.with_contrib }}
@@ -75,25 +74,25 @@ jobs:
7574
- name: Saving a wheel accordingly to matrix
7675
uses: actions/upload-artifact@v7
7776
with:
78-
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
77+
name: wheel-${{ matrix.platform }}-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
7978
path: wheelhouse/opencv*.whl
8079

8180
Test:
8281
needs: [Build]
83-
runs-on: macos-15-intel
82+
runs-on: ${{ matrix.platform == 'arm64' && 'macos-15' || 'macos-15-intel' }}
8483
strategy:
8584
fail-fast: false
8685
matrix:
8786
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
88-
platform: [x64]
87+
platform: [x86_64, arm64]
8988
with_contrib: [0, 1]
9089
without_gui: [0, 1]
9190
build_sdist: [0]
9291
env:
9392
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
9493
MB_PYTHON_VERSION: ${{ matrix.python-version }}
9594
CONFIG_PATH: travis_config.sh
96-
PLAT: x86_64
95+
PLAT: ${{ matrix.platform }}
9796
OPENCV_TEST_DATA_PATH: ${{ github.workspace }}/opencv_extra/testdata
9897
PYLINT_TEST_FILE: ${{ github.workspace }}/opencv/samples/python/squares.py
9998
PIP_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple
@@ -112,7 +111,7 @@ jobs:
112111
- name: Download a wheel accordingly to matrix
113112
uses: actions/download-artifact@v8
114113
with:
115-
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
114+
name: wheel-${{ matrix.platform }}-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
116115
path: wheelhouse/
117116
- name: Create Venv for test
118117
run: |

‎.github/workflows/build_wheels_macos_m1.yml‎

Lines changed: 0 additions & 115 deletions
This file was deleted.

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,14 @@ jobs:
1919
with:
2020
enable-rolling: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
2121

22-
Build-macosm1:
23-
uses: $/.github/workflows/build_wheels_macos_m1.yml # includes testing
24-
with:
25-
enable-rolling: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
26-
2722
Build-macos:
2823
uses: $/.github/workflows/build_wheels_macos.yml # includes testing
2924
with:
3025
enable-rolling: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
3126

3227
Release_rolling:
3328
if: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
34-
needs: [Build-manylinux, Build-windows, Build-macosm1, Build-macos]
29+
needs: [Build-manylinux, Build-windows, Build-macos]
3530
runs-on: ubuntu-22.04
3631
environment: opencv-python-rolling-release
3732
defaults:
@@ -60,7 +55,7 @@ jobs:
6055
6156
Pre-release:
6257
if: github.event_name == 'release' && github.event.release.prerelease
63-
needs: [Build-manylinux, Build-windows, Build-macosm1, Build-macos]
58+
needs: [Build-manylinux, Build-windows, Build-macos]
6459
runs-on: ubuntu-22.04
6560
environment: test-opencv-python-release
6661
defaults:
@@ -78,7 +73,7 @@ jobs:
7873
7974
Release:
8075
if: github.event_name == 'release' && !github.event.release.prerelease
81-
needs: [Build-manylinux, Build-windows, Build-macosm1, Build-macos]
76+
needs: [Build-manylinux, Build-windows, Build-macos]
8277
runs-on: ubuntu-22.04
8378
environment: opencv-python-release
8479
defaults:

0 commit comments

Comments
 (0)