Skip to content

Commit ba84fb8

Browse files
committed
[actions] Only build a single package type for Windows
1 parent 90473c0 commit ba84fb8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/build_wheels_windows.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
python-version: ['3.9']
14-
platform: [x86, x64]
15-
with_contrib: [0, 1]
16-
without_gui: [0, 1]
14+
platform: [x64]
15+
with_contrib: [1]
16+
headless: [0]
1717
build_sdist: [0]
1818
env:
1919
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
2020
SDIST: ${{ matrix.build_sdist || 0 }}
21-
ENABLE_HEADLESS: ${{ matrix.without_gui }}
21+
ENABLE_HEADLESS: ${{ matrix.headless }}
2222
ENABLE_CONTRIB: ${{ matrix.with_contrib }}
2323
OPENCV_TEST_DATA_PATH: ${{ github.workspace }}\opencv_extra\testdata
2424
steps:
@@ -61,7 +61,7 @@ jobs:
6161
- name: Saving all wheels
6262
uses: actions/upload-artifact@v4
6363
with:
64-
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}-${{ matrix.platform }}
64+
name: wheel-${{ matrix.with_contrib }}-${{ matrix.headless }}-${{ matrix.build_sdist }}-${{ matrix.platform }}
6565
path: wheelhouse/opencv*
6666

6767
Test:
@@ -73,10 +73,10 @@ jobs:
7373
strategy:
7474
fail-fast: false
7575
matrix:
76-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
77-
platform: [x86, x64]
78-
with_contrib: [0, 1]
79-
without_gui: [0, 1]
76+
python-version: ['3.12']
77+
platform: [x64]
78+
with_contrib: [1]
79+
headless: [0]
8080
build_sdist: [0]
8181
env:
8282
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
@@ -103,7 +103,7 @@ jobs:
103103
- name: Download a wheel accordingly to matrix
104104
uses: actions/download-artifact@v4
105105
with:
106-
name: wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}-${{ matrix.platform }}
106+
name: wheel-${{ matrix.with_contrib }}-${{ matrix.headless }}-${{ matrix.build_sdist }}-${{ matrix.platform }}
107107
path: wheelhouse/
108108
- name: Package installation
109109
run: |

0 commit comments

Comments
 (0)