Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f56fb78

Browse filesBrowse files
authored
Try windows with a new configuration
1 parent 591c15a commit f56fb78
Copy full SHA for f56fb78

File tree

Expand file treeCollapse file tree

1 file changed

+15
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+15
-3
lines changed

‎.github/workflows/build_wheels.yml

Copy file name to clipboardExpand all lines: .github/workflows/build_wheels.yml
+15-3Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,17 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
os: [windows-latest] # ubuntu-latest,
25+
os: [windows-latest, ubuntu-latest, macos-latest] # ubuntu-latest,
2626
python-version: [3.6] # [3.6, 3.7, 3.8, 3.9]
27-
platform: [x64] # [x32, x64]
27+
platform: [x32, x64]
2828
with_contrib: [0, 1]
2929
without_gui: [0, 1]
3030
build_sdist: [0]
31+
exclude:
32+
- os: macos-latest
33+
platform: x32
34+
- os: ubuntu-latest
35+
platform: x32
3136

3237
env:
3338
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
@@ -42,15 +47,18 @@ jobs:
4247
- name: Update submodules
4348
run: |
4449
git submodule update --remote
50+
4551
- name: Set up Python ${{ matrix.python-version }}
4652
uses: actions/setup-python@v2
4753
with:
4854
python-version: ${{ matrix.python-version }}
4955

5056
- name: Setup MSBuild.exe
57+
if: ${{ matrix.os == 'windows-latest' }}
5158
uses: warrenbuckley/Setup-MSBuild@v1
5259

5360
- name: build script
61+
if: ${{ matrix.os == 'windows-latest' }}
5462
run: |
5563
python --version
5664
python -m pip install --upgrade pip
@@ -59,19 +67,23 @@ jobs:
5967
shell: cmd
6068

6169
- name: before test
70+
if: ${{ matrix.os == 'windows-latest' }}
6271
run: |
6372
cd ${{ github.workspace }}/tests
6473
$env:PYTHONWARNINGS = "ignore:::pip._internal.cli.base_command"
6574
&python -m pip install --user --no-warn-script-location (ls "../dist/opencv_*.whl")
6675
if ($LastExitCode -ne 0) {throw $LastExitCode}
76+
6777
- name: run test
78+
if: ${{ matrix.os == 'windows-latest' }}
6879
run: |
6980
cd ${{ github.workspace }}/tests
7081
python -m unittest test
7182
shell: cmd
7283

7384
- name: saving artifacts
85+
if: ${{ matrix.os == 'windows-latest' }}
7486
uses: actions/upload-artifact@v2
7587
with:
76-
name: wheels-${{ matrix.python-version }}-${{ matrix.platform }}-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
88+
name: ${{ matrix.os }}-wheels-${{ matrix.python-version }}-${{ matrix.platform }}-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
7789
path: dist\opencv*.whl

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.