We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7bbb03 commit 2e6104eCopy full SHA for 2e6104e
1 file changed
.github/workflows/main.yml
@@ -90,7 +90,9 @@ jobs:
90
env:
91
CIBW_BUILD_VERBOSITY: 1
92
# add compiled libmagic to the build directory (to include in the wheel)
93
- CIBW_BEFORE_BUILD: bash "add_libmagic.sh"
+ CIBW_BEFORE_BUILD: ${{ ( startsWith( matrix.os, 'macos' ) && 'sudo -E bash add_libmagic.sh' ) || 'bash add_libmagic.sh' }}
94
+ # build macos wheels with maximum backwards compatibility (gcc -mmacosx-version-min flag)
95
+ MACOSX_DEPLOYMENT_TARGET: ${{ ( endsWith( matrix.only, 'arm64' ) && '11.0' ) || '10.9' }}
96
# simple smoke test run on each wheel: this is an HLS MP4 video, only recognised in recent versions of libmagic
97
CIBW_TEST_COMMAND: python -c "import magic; assert magic.Magic(mime=True).from_buffer(b'\x00\x00\x00\x1cftypiso5\x00\x00\x00\x01isomiso5hlsf\x00\x00') == 'video/mp4'"
98
0 commit comments