|
8 | 8 | paths-ignore: |
9 | 9 | - '.github/workflows/build_wheels_manylinux*' |
10 | 10 | - '.github/workflows/build_wheels_windows*' |
11 | | - - '.github/workflows/build_wheels_macos_m1.yml' |
12 | 11 | release: |
13 | 12 | types: [published, edited] |
14 | 13 | schedule: |
|
18 | 17 |
|
19 | 18 | jobs: |
20 | 19 | Build: |
21 | | - runs-on: macos-15-intel |
| 20 | + runs-on: ${{ matrix.platform == 'arm64' && 'macos-15' || 'macos-15-intel' }} |
22 | 21 | strategy: |
23 | 22 | fail-fast: false |
24 | 23 | matrix: |
25 | 24 | python-version: ['3.10'] |
26 | | - platform: [x64] |
| 25 | + platform: [x86_64, arm64] |
27 | 26 | with_contrib: [0, 1] |
28 | 27 | without_gui: [0, 1] |
29 | 28 | build_sdist: [0] |
|
40 | 39 | CONFIG_PATH: travis_config.sh |
41 | 40 | USE_CCACHE: 1 |
42 | 41 | UNICODE_WIDTH: 32 |
43 | | - PLAT: x86_64 |
| 42 | + PLAT: ${{ matrix.platform }} |
44 | 43 | SDIST: ${{ matrix.build_sdist || 0 }} |
45 | 44 | ENABLE_HEADLESS: ${{ matrix.without_gui }} |
46 | 45 | ENABLE_CONTRIB: ${{ matrix.with_contrib }} |
@@ -80,20 +79,20 @@ jobs: |
80 | 79 |
|
81 | 80 | Test: |
82 | 81 | needs: [Build] |
83 | | - runs-on: macos-15-intel |
| 82 | + runs-on: ${{ matrix.platform == 'arm64' && 'macos-15' || 'macos-15-intel' }} |
84 | 83 | strategy: |
85 | 84 | fail-fast: false |
86 | 85 | matrix: |
87 | 86 | python-version: ['3.10', '3.11', '3.12', '3.13', '3.14'] |
88 | | - platform: [x64] |
| 87 | + platform: [x86_64, arm64] |
89 | 88 | with_contrib: [0, 1] |
90 | 89 | without_gui: [0, 1] |
91 | 90 | build_sdist: [0] |
92 | 91 | env: |
93 | 92 | ACTIONS_ALLOW_UNSECURE_COMMANDS: true |
94 | 93 | MB_PYTHON_VERSION: ${{ matrix.python-version }} |
95 | 94 | CONFIG_PATH: travis_config.sh |
96 | | - PLAT: x86_64 |
| 95 | + PLAT: ${{ matrix.platform }} |
97 | 96 | OPENCV_TEST_DATA_PATH: ${{ github.workspace }}/opencv_extra/testdata |
98 | 97 | PYLINT_TEST_FILE: ${{ github.workspace }}/opencv/samples/python/squares.py |
99 | 98 | PIP_INDEX_URL: https://pypi.tuna.tsinghua.edu.cn/simple |
|
0 commit comments