Skip to content

Commit

Permalink
Disable AVX512 in CI wheels/sdist builds via setup.py option
Browse files Browse the repository at this point in the history
As environment variables do not work.
  • Loading branch information
ivilata committed Nov 8, 2023
1 parent bb43188 commit 1f7482b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/cibuildwheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
run: |
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_ENVIRONMENT: DISABLE_AVX512='TRUE'
CIBW_CONFIG_SETTINGS: "--build-option=-DDEACTIVATE_AVX512:BOOL=YES"

- name: Upload wheels
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -118,9 +118,7 @@ jobs:
cd ./dist
tar -xzf blosc2-*.tar.gz
cd ./blosc2-*/
python setup.py build_ext --inplace
env:
CIBW_ENVIRONMENT: DISABLE_AVX512='TRUE'
python setup.py build_ext --inplace -DDEACTIVATE_AVX512:BOOL=YES
- name: Test sdist package with pytest
run: |
Expand Down

0 comments on commit 1f7482b

Please sign in to comment.