Skip to content

Commit e65a861

Browse files
committed
Attempt to univeral2-ize everything
1 parent 4d1534e commit e65a861

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,14 @@ jobs:
391391

392392
- name: Download OpenSSL
393393
run: |
394-
python .github/workflows/download_openssl.py macos openssl-macos-x86-64
394+
python .github/workflows/download_openssl.py macos openssl-macos-universal2
395395
env:
396396
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
397397
- name: Tests
398398
run: |
399399
CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS=1 \
400-
LDFLAGS="${HOME}/openssl-macos-x86-64/lib/libcrypto.a ${HOME}/openssl-macos-x86-64/lib/libssl.a" \
401-
CFLAGS="-I${HOME}/openssl-macos-x86-64/include -Werror -Wno-error=deprecated-declarations -Wno-error=incompatible-pointer-types-discards-qualifiers -Wno-error=unused-function -mmacosx-version-min=10.10 -march=core2 $EXTRA_CFLAGS" \
400+
LDFLAGS="${HOME}/openssl-macos-universal2/lib/libcrypto.a ${HOME}/openssl-macos-universal2/lib/libssl.a" \
401+
CFLAGS="-I${HOME}/openssl-macos-universal2/include -Werror -Wno-error=deprecated-declarations -Wno-error=incompatible-pointer-types-discards-qualifiers -Wno-error=unused-function -mmacosx-version-min=10.10 $EXTRA_CFLAGS" \
402402
tox -vvv -r -- --color=yes --wycheproof-root=wycheproof
403403
env:
404404
TOXENV: ${{ matrix.PYTHON.TOXENV }}

.github/workflows/wheel-builder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ jobs:
167167
CFLAGS="-I${HOME}/openssl-macos-universal2/include" \
168168
../venv/bin/python setup.py bdist_wheel --py-limited-api=${{ matrix.PYTHON.ABI_VERSION }} && mv dist/cryptography*.whl ../wheelhouse
169169
env:
170-
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.PYTHON.DEPLOYMENT_TARGET }}
170+
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.PYTHON.DEPLOYMENT_TARGET }}
171171
ARCHFLAGS: ${{ matrix.PYTHON.ARCHFLAGS }}
172172
_PYTHON_HOST_PLATFORM: ${{ matrix.PYTHON._PYTHON_HOST_PLATFORM }}
173173
- run: venv/bin/pip install -f wheelhouse --no-index cryptography

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ deps =
1010
-e ./vectors
1111
pytest-shard>=0.1.2
1212
randomorder: pytest-randomly
13-
passenv = ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH RUSTFLAGS CARGO_TARGET_DIR LLVM_PROFILE_FILE OPENSSL_FORCE_FIPS_MODE
13+
passenv = ARCHFLAGS LDFLAGS CFLAGS INCLUDE LIB LD_LIBRARY_PATH RUSTFLAGS CARGO_TARGET_DIR LLVM_PROFILE_FILE OPENSSL_FORCE_FIPS_MODE MACOSX_DEPLOYMENT_TARGET
1414
commands =
1515
pip list
1616
!nocoverage: pytest -n auto --cov=cryptography --cov=tests --durations=10 {posargs} tests/

0 commit comments

Comments
 (0)