summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2020-04-19 11:21:27 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2020-04-19 11:25:29 -0400
commitf85a253d3afc76f59b5202fc293573ae0c5e5bc0 (patch)
treec1284afed62e79bc2a97d1373ae10853b84b8b09
parentec65bfe3b877ffc569618497219d31dd695e0aed (diff)
downloadcryptography-manylinux-github-actions.tar.gz
Run builder on PRmanylinux-github-actions
-rw-r--r--.github/workflows/wheel-builder.yml101
1 files changed, 51 insertions, 50 deletions
diff --git a/.github/workflows/wheel-builder.yml b/.github/workflows/wheel-builder.yml
index b69e4c77c..f633b1f81 100644
--- a/.github/workflows/wheel-builder.yml
+++ b/.github/workflows/wheel-builder.yml
@@ -1,6 +1,7 @@
on:
repository_dispatch:
types: [wheel-builder]
+ pull_request: {}
jobs:
manylinux:
@@ -28,7 +29,7 @@ jobs:
fi
LDFLAGS="-L/opt/pyca/cryptography/openssl/lib" \
CFLAGS="-I/opt/pyca/cryptography/openssl/include -Wl,--exclude-libs,ALL" \
- .venv/bin/pip wheel cryptography==${{ github.event.client_payload.BUILD_VERSION }} --no-binary cryptography --no-deps --wheel-dir=tmpwheelhouse $PY_LIMITED_API
+ .venv/bin/pip wheel cryptography==2.9 --no-binary cryptography --no-deps --wheel-dir=tmpwheelhouse $PY_LIMITED_API
- run: auditwheel repair --plat ${{ matrix.MANYLINUX.NAME }} tmpwheelhouse/cryptograph*.whl -w wheelhouse/
- run: unzip wheelhouse/*.whl -d execstack.check
- run: |
@@ -48,56 +49,56 @@ jobs:
- run: mv wheelhouse/cryptography*.whl cryptography-wheelhouse/
- uses: actions/upload-artifact@v1
with:
- name: "cryptography-${{ github.event.client_payload.BUILD_VERSION }}-${{ matrix.MANYLINUX.NAME }}-${{ matrix.PYTHON }}"
+ name: "cryptography-2.9-${{ matrix.MANYLINUX.NAME }}-${{ matrix.PYTHON }}"
path: cryptography-wheelhouse/
- windows:
- runs-on: windows-latest
- strategy:
- matrix:
- WINDOWS:
- - {ARCH: 'x86', WINDOWS: 'win32'}
- - {ARCH: 'x64', WINDOWS: 'win64'}
- PYTHON:
- - {VERSION: "2.7", TOXENV: "py27", MSVC_VERSION: "2010"}
- - {VERSION: "3.5", TOXENV: "py35", MSVC_VERSION: "2019"}
- - {VERSION: "3.6", TOXENV: "py36", MSVC_VERSION: "2019"}
- - {VERSION: "3.7", TOXENV: "py37", MSVC_VERSION: "2019"}
- - {VERSION: "3.8", TOXENV: "py38", MSVC_VERSION: "2019"}
- name: "Python ${{ matrix.PYTHON.VERSION }} on ${{ matrix.WINDOWS.WINDOWS }}"
- steps:
- - uses: actions/checkout@master
- - name: Setup python
- uses: actions/setup-python@v1
- with:
- python-version: ${{ matrix.PYTHON.VERSION }}
- architecture: ${{ matrix.WINDOWS.ARCH }}
- - name: Install MSVC for Python 2.7
- run: |
- Invoke-WebRequest -Uri https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi -OutFile VCForPython27.msi
- Start-Process msiexec -Wait -ArgumentList @('/i', 'VCForPython27.msi', '/qn', 'ALLUSERS=1')
- Remove-Item VCForPython27.msi -Force
- shell: powershell
- if: matrix.PYTHON.VERSION == '2.7'
- - run: pip install requests
- - name: Download OpenSSL
- run: |
- python .github/workflows/download_openssl.py 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:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ # windows:
+ # runs-on: windows-latest
+ # strategy:
+ # matrix:
+ # WINDOWS:
+ # - {ARCH: 'x86', WINDOWS: 'win32'}
+ # - {ARCH: 'x64', WINDOWS: 'win64'}
+ # PYTHON:
+ # - {VERSION: "2.7", TOXENV: "py27", MSVC_VERSION: "2010"}
+ # - {VERSION: "3.5", TOXENV: "py35", MSVC_VERSION: "2019"}
+ # - {VERSION: "3.6", TOXENV: "py36", MSVC_VERSION: "2019"}
+ # - {VERSION: "3.7", TOXENV: "py37", MSVC_VERSION: "2019"}
+ # - {VERSION: "3.8", TOXENV: "py38", MSVC_VERSION: "2019"}
+ # name: "Python ${{ matrix.PYTHON.VERSION }} on ${{ matrix.WINDOWS.WINDOWS }}"
+ # steps:
+ # - uses: actions/checkout@master
+ # - name: Setup python
+ # uses: actions/setup-python@v1
+ # with:
+ # python-version: ${{ matrix.PYTHON.VERSION }}
+ # architecture: ${{ matrix.WINDOWS.ARCH }}
+ # - name: Install MSVC for Python 2.7
+ # run: |
+ # Invoke-WebRequest -Uri https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi -OutFile VCForPython27.msi
+ # Start-Process msiexec -Wait -ArgumentList @('/i', 'VCForPython27.msi', '/qn', 'ALLUSERS=1')
+ # Remove-Item VCForPython27.msi -Force
+ # shell: powershell
+ # if: matrix.PYTHON.VERSION == '2.7'
+ # - run: pip install requests
+ # - name: Download OpenSSL
+ # run: |
+ # python .github/workflows/download_openssl.py 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:
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- - run: pip install cffi six ipaddress "enum34; python_version < '3'"
- - run: pip wheel cryptography==${{ github.event.client_payload.BUILD_VERSION }} --wheel-dir=wheelhouse --no-binary cryptography
- - run: pip install -f wheelhouse --no-index cryptography
- - name: Print the OpenSSL we built and linked against
- run: |
- python -c "from cryptography.hazmat.backends.openssl.backend import backend;print('Loaded: ' + backend.openssl_version_text());print('Linked Against: ' + backend._ffi.string(backend._lib.OPENSSL_VERSION_TEXT).decode('ascii'))"
+ # - run: pip install cffi six ipaddress "enum34; python_version < '3'"
+ # - run: pip wheel cryptography==${{ github.event.client_payload.BUILD_VERSION }} --wheel-dir=wheelhouse --no-binary cryptography
+ # - run: pip install -f wheelhouse --no-index cryptography
+ # - name: Print the OpenSSL we built and linked against
+ # run: |
+ # python -c "from cryptography.hazmat.backends.openssl.backend import backend;print('Loaded: ' + backend.openssl_version_text());print('Linked Against: ' + backend._ffi.string(backend._lib.OPENSSL_VERSION_TEXT).decode('ascii'))"
- - run: mkdir cryptography-wheelhouse
- - run: move wheelhouse\cryptography*.whl cryptography-wheelhouse\
- - uses: actions/upload-artifact@v1
- with:
- name: "cryptography-${{ github.event.client_payload.BUILD_VERSION }}-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.VERSION }}"
- path: cryptography-wheelhouse\
+ # - run: mkdir cryptography-wheelhouse
+ # - run: move wheelhouse\cryptography*.whl cryptography-wheelhouse\
+ # - uses: actions/upload-artifact@v1
+ # with:
+ # name: "cryptography-${{ github.event.client_payload.BUILD_VERSION }}-${{ matrix.WINDOWS.WINDOWS }}-${{ matrix.PYTHON.VERSION }}"
+ # path: cryptography-wheelhouse\