diff options
author | Wouter Kayser <wouterkayser@gmail.com> | 2021-10-23 14:55:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-23 08:55:17 -0400 |
commit | 95d9f1eb0b4d1baafb6fa6f437ba2e0ad2769c00 (patch) | |
tree | 77f5a6638cd510085935ffcf64baabf7c2d372d6 | |
parent | aee81f6f3f5559cdcb5e1c63b3df417448363645 (diff) | |
download | py-bcrypt-git-95d9f1eb0b4d1baafb6fa6f437ba2e0ad2769c00.tar.gz |
Add MUSL linux build (#272)
* Add MUSL linux build
update workflow to add a musllinux build
* Add new test target based on the alpine linux image wit python 3.9 installed. However some extras are needed for building. This is wat we want to avoid in all other containers.
-rw-r--r-- | .github/workflows/ci.yml | 18 | ||||
-rw-r--r-- | .github/workflows/wheel-builder.yml | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b1acee..60e9733 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,3 +95,21 @@ jobs: /opt/python/${{ matrix.PYTHON.VERSION }}/bin/python -m venv .venv; .venv/bin/pip install -U tox; .venv/bin/tox -e ${{ matrix.PYTHON.TOXENV }};" + + musllinux: + name: "${{ matrix.PYTHON.TOXENV }} on musllinux" + runs-on: ubuntu-20.04 + strategy: + matrix: + PYTHON: + - {VERSION: "3.9", TOXENV: "py39"} + steps: + - uses: actions/checkout@v2.3.5 + - uses: docker://registry.hub.docker.com/library/python:3.9-alpine + with: + args: | + sh -c "set -xe; + python -m venv .venv; + apk add gcc py3-wheel libc-dev libffi-dev alpine-sdk; + .venv/bin/pip install -U tox; + .venv/bin/tox -e ${{ matrix.PYTHON.TOXENV }};" diff --git a/.github/workflows/wheel-builder.yml b/.github/workflows/wheel-builder.yml index edf82bf..3e63776 100644 --- a/.github/workflows/wheel-builder.yml +++ b/.github/workflows/wheel-builder.yml @@ -16,6 +16,7 @@ jobs: CONTAINER: - {IMAGE: "pyca/cryptography-manylinux1:x86_64", NAME: "manylinux1"} - {IMAGE: "pyca/cryptography-manylinux2010:x86_64", NAME: "manylinux2010"} + - {IMAGE: "pyca/cryptography-musllinux_1_1:x86_64", NAME: "cryptography-musllinux_1_1"} name: "${{ matrix.PYTHON.ABI_VERSION }} ${{ matrix.CONTAINER.NAME }}" container: ${{ matrix.CONTAINER.IMAGE }} steps: |