Skip to content
Snippets Groups Projects
Commit b63cf6974384 authored by Paul Kehrer's avatar Paul Kehrer
Browse files

goodbye qemu (#285)

* goodbye qemu

* poke
parent 7fa922b8dd13
No related merge requests found
......@@ -90,24 +90,3 @@
- run: 'tox'
env:
TOXENV: ${{ matrix.IMAGE.TOXENV }}
manylinux-arm64:
name: "${{ matrix.PYTHON.TOXENV }} on manylinux2014-aarch64"
runs-on: ubuntu-20.04
strategy:
matrix:
PYTHON:
- {VERSION: "cp36-cp36m", TOXENV: 'py36'}
steps:
- uses: actions/checkout@v2.4.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v1.2.0
with:
platforms: arm64
- uses: docker://quay.io/pypa/manylinux2014_aarch64
with:
args: |
bash -c "set -xe;
/opt/python/${{ matrix.PYTHON.VERSION }}/bin/python -m venv .venv;
.venv/bin/pip install -U tox;
.venv/bin/tox -e ${{ matrix.PYTHON.TOXENV }};"
......@@ -127,45 +127,3 @@
with:
name: "bcrypt-${{ github.event.inputs.version }}-${{ matrix.WINDOWS }}-${{ matrix.PYTHON.ABI_VERSION }}"
path: bcrypt-wheelhouse\
manylinux-arm64:
name: "${{ matrix.PYTHON.ABI_VERSION }} manylinux2014-aarch64"
runs-on: ubuntu-latest
strategy:
matrix:
PYTHON:
- {VERSION: "cp36-cp36m", ABI_VERSION: 'cp36'}
steps:
- uses: actions/checkout@v2.4.0
with:
# The tag to build or the tag received by the tag event
ref: ${{ github.event.inputs.version || github.ref }}
persist-credentials: false
- run: |
docker run --rm --privileged hypriot/qemu-register
- uses: docker://ghcr.io/pyca/cryptography-manylinux2014_aarch64:latest
# The weird pip cache nonsense below is due to docker ownership issues. We want
# a cache because otherwise we end up building cffi twice.
with:
args: |
bash -c "set -xe;
mkdir -p /github/home/.cache/pip;
chown -R $(whoami) /github/home/.cache;
/opt/python/${{ matrix.PYTHON.VERSION }}/bin/python -m venv .venv;
.venv/bin/pip install -U pip wheel cffi six;
.venv/bin/python setup.py sdist;
tar zxvf dist/bcrypt*.tar.gz;
mkdir tmpwheelhouse;
pushd bcrypt*;
../.venv/bin/python setup.py bdist_wheel --py-limited-api=${{ matrix.PYTHON.ABI_VERSION }};
mv dist/bcrypt*.whl ../tmpwheelhouse;
popd;
auditwheel repair tmpwheelhouse/bcrypt*.whl -w wheelhouse/;
.venv/bin/pip install bcrypt --no-index -f wheelhouse/;
.venv/bin/python -c \"import bcrypt; password = b'super secret password';hashed = bcrypt.hashpw(password, bcrypt.gensalt());bcrypt.checkpw(password, hashed)\";"
- run: mkdir bcrypt-wheelhouse
- run: sudo mv wheelhouse/bcrypt*.whl bcrypt-wheelhouse/
- uses: actions/upload-artifact@v1
with:
name: "bcrypt-${{ github.event.inputs.version }}-manylinux2014-aarch64-${{ matrix.PYTHON.ABI_VERSION }}"
path: bcrypt-wheelhouse/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment