Skip to content

Commit 4b49e0b

Browse files
authored
Merge pull request #555 from asenyaev/asen/fix_macos_m1
Fix for the issue when there are no libs in packages on MacOS M1
2 parents f07201c + 3f01089 commit 4b49e0b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build_wheels_macos_m1.yml

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
build_sdist: [0]
2828

2929
env:
30+
CI_BUILD: 1
3031
SDIST: ${{ matrix.build_sdist || 0 }}
3132
ENABLE_HEADLESS: ${{ matrix.without_gui }}
3233
ENABLE_CONTRIB: ${{ matrix.with_contrib }}
@@ -50,16 +51,20 @@ jobs:
5051
echo $ENABLE_HEADLESS > headless.enabled
5152
export MACOSX_DEPLOYMENT_TARGET=11.0
5253
arch -arm64 python${{ matrix.python-version }} -m pip wheel --wheel-dir=wheelhouse . --verbose
54+
delocate-wheel ${{ github.workspace }}/wheelhouse/opencv*
55+
5356
- name: before test
5457
run: |
5558
git submodule update --init --recursive
5659
arch -arm64 python${{ matrix.python-version }} -m pip install --user --no-cache --force-reinstall wheelhouse/opencv*.whl
5760
cd ${{ github.workspace }}/tests
5861
arch -arm64 python${{ matrix.python-version }} get_build_info.py
62+
5963
- name: run test
6064
run: |
6165
cd ${{ github.workspace }}/opencv
6266
arch -arm64 python${{ matrix.python-version }} modules/python/test/test.py -v --repo .
67+
6368
- name: saving artifacts
6469
uses: actions/upload-artifact@v2
6570
with:

0 commit comments

Comments
 (0)