Skip to content

Commit

Permalink
Merge pull request #555 from asenyaev/asen/fix_macos_m1
Browse files Browse the repository at this point in the history
Fix for the issue when there are no libs in packages on MacOS M1
  • Loading branch information
asenyaev committed Oct 7, 2021
2 parents f07201c + 3f01089 commit 4b49e0b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build_wheels_macos_m1.yml
Expand Up @@ -27,6 +27,7 @@ jobs:
build_sdist: [0]

env:
CI_BUILD: 1
SDIST: ${{ matrix.build_sdist || 0 }}
ENABLE_HEADLESS: ${{ matrix.without_gui }}
ENABLE_CONTRIB: ${{ matrix.with_contrib }}
Expand All @@ -50,16 +51,20 @@ jobs:
echo $ENABLE_HEADLESS > headless.enabled
export MACOSX_DEPLOYMENT_TARGET=11.0
arch -arm64 python${{ matrix.python-version }} -m pip wheel --wheel-dir=wheelhouse . --verbose
delocate-wheel ${{ github.workspace }}/wheelhouse/opencv*
- name: before test
run: |
git submodule update --init --recursive
arch -arm64 python${{ matrix.python-version }} -m pip install --user --no-cache --force-reinstall wheelhouse/opencv*.whl
cd ${{ github.workspace }}/tests
arch -arm64 python${{ matrix.python-version }} get_build_info.py
- name: run test
run: |
cd ${{ github.workspace }}/opencv
arch -arm64 python${{ matrix.python-version }} modules/python/test/test.py -v --repo .
- name: saving artifacts
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 4b49e0b

Please sign in to comment.