Skip to content

Commit 76a6fb2

Browse files
author
Andrey Senyaev
committed
Added fix for MacOS with M1
1 parent c1cc7e5 commit 76a6fb2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build_wheels_macos_m1.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,21 @@ jobs:
4949
echo $ENABLE_CONTRIB > contrib.enabled
5050
echo $ENABLE_HEADLESS > headless.enabled
5151
export MACOSX_DEPLOYMENT_TARGET=11.0
52-
arch -arm64 python${{ matrix.python-version }} -m pip wheel --wheel-dir=wheelhouse . --verbose
52+
arch -arm64 -e SDIST=${{ matrix.build_sdist }} -e ENABLE_HEADLESS=${{ matrix.without_gui }} -e ENABLE_CONTRIB=${{ matrix.with_contrib }} python${{ matrix.python-version }} -m pip wheel --wheel-dir=wheelhouse . --verbose
53+
delocate-wheel ${{ github.workspace }}/wheelhouse/opencv*
54+
5355
- name: before test
5456
run: |
5557
git submodule update --init --recursive
5658
arch -arm64 python${{ matrix.python-version }} -m pip install --user --no-cache --force-reinstall wheelhouse/opencv*.whl
5759
cd ${{ github.workspace }}/tests
5860
arch -arm64 python${{ matrix.python-version }} get_build_info.py
61+
5962
- name: run test
6063
run: |
6164
cd ${{ github.workspace }}/opencv
6265
arch -arm64 python${{ matrix.python-version }} modules/python/test/test.py -v --repo .
66+
6367
- name: saving artifacts
6468
uses: actions/upload-artifact@v2
6569
with:

0 commit comments

Comments
 (0)