diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2020-04-22 14:52:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 15:52:20 -0400 |
commit | 23648a4236acd5e7e18e82bee71f43146e09c857 (patch) | |
tree | 9c42bf2ad2111cadf55e355d1df6312c6b07bbbf /.github/workflows/ci.yml | |
parent | a7f846e0d694b1d007adb09d86482b909a8ab9f5 (diff) | |
download | cryptography-23648a4236acd5e7e18e82bee71f43146e09c857.tar.gz cryptography-23648a4236acd5e7e18e82bee71f43146e09c857.tar.bz2 cryptography-23648a4236acd5e7e18e82bee71f43146e09c857.zip |
use our infra built openssl on the macos side now too (#5217)
* use our infra built openssl on the macos side now too
* remove no longer required brew updates
* need requests
* need this env var
* update the wheel-builders too
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r-- | .github/workflows/ci.yml | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14418789..d49ee719 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,16 +27,20 @@ jobs: with: python-version: ${{ matrix.PYTHON.VERSION }} - - run: brew update - - run: brew install openssl@1.1 - - run: python -m pip install tox coverage + - run: python -m pip install tox requests coverage - run: git clone https://github.com/google/wycheproof - - run: | + - name: Download OpenSSL + run: | + python .github/workflows/download_openssl.py macos openssl-macos + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Tests + run: | CRYPTOGRAPHY_SUPPRESS_LINK_FLAGS=1 \ - LDFLAGS="/usr/local/opt/openssl\\@1.1/lib/libcrypto.a /usr/local/opt/openssl\\@1.1/lib/libssl.a" \ - CFLAGS="-I/usr/local/opt/openssl\\@1.1/include -Werror -Wno-error=deprecated-declarations -Wno-error=incompatible-pointer-types-discards-qualifiers -Wno-error=unused-function -Wno-error=unused-command-line-argument -mmacosx-version-min=10.9" \ + LDFLAGS="${HOME}/openssl-macos/lib/libcrypto.a ${HOME}/openssl-macos/lib/libssl.a" \ + CFLAGS="-I${HOME}/openssl-macos/include -Werror -Wno-error=deprecated-declarations -Wno-error=incompatible-pointer-types-discards-qualifiers -Wno-error=unused-function -Wno-error=unused-command-line-argument -mmacosx-version-min=10.9 -march=core2" \ tox -r -- --color=yes --wycheproof-root=wycheproof env: TOXENV: ${{ matrix.PYTHON.TOXENV }} @@ -78,7 +82,7 @@ jobs: - run: python -m pip install tox requests coverage - name: Download OpenSSL run: | - python .github/workflows/download_openssl.py openssl-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.MSVC_VERSION }} + python .github/workflows/download_openssl.py windows openssl-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.MSVC_VERSION }} echo "::set-env name=INCLUDE::C:/openssl-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.MSVC_VERSION }}/include;%INCLUDE%" echo "::set-env name=LIB::C:/openssl-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.MSVC_VERSION }}/lib;%LIB%" env: |