Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goodbye qemu #285

Merged
merged 2 commits into from
Jan 5, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
goodbye qemu
  • Loading branch information
reaperhulk committed Jan 5, 2022
commit caf78dca1158de6ad748bbd5e02d97657013117f
21 changes: 0 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,3 @@ jobs:
- 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/[email protected]
- name: Set up QEMU
uses: docker/[email protected]
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 }};"
42 changes: 0 additions & 42 deletions .github/workflows/wheel-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,45 +127,3 @@ jobs:
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/[email protected]
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/