From 95d9f1eb0b4d1baafb6fa6f437ba2e0ad2769c00 Mon Sep 17 00:00:00 2001 From: Wouter Kayser Date: Sat, 23 Oct 2021 14:55:17 +0200 Subject: 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. --- .github/workflows/ci.yml | 18 ++++++++++++++++++ .github/workflows/wheel-builder.yml | 1 + 2 files changed, 19 insertions(+) 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: -- cgit v1.2.1