From 08d7e5befe90c2a8aec63b5099285d04ba45d619 Mon Sep 17 00:00:00 2001 From: bwoodsend Date: Mon, 20 Sep 2021 11:27:14 +0100 Subject: [PATCH 1/2] Build wheels for musl aarch64 (aka ARM) Linux. --- .github/workflows/deploy-wheels-linux.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-wheels-linux.yml b/.github/workflows/deploy-wheels-linux.yml index 24ef36b6..4b42ee31 100644 --- a/.github/workflows/deploy-wheels-linux.yml +++ b/.github/workflows/deploy-wheels-linux.yml @@ -18,6 +18,7 @@ jobs: "manylinux2014_aarch64", "manylinux2014_i686", "manylinux2014_x86_64", + "musllinux_1_1_aarch64", "musllinux_1_1_x86_64", ] python-version: ["pypy3", "3.6", "3.7", "3.8", "3.9", "3.10-dev"] @@ -31,6 +32,7 @@ jobs: - { python-version: "3.10-dev", version-tag: "cp310-cp310" } exclude: # No PyPy3 on musllinux + - { python-version: "pypy3", wheel: "musllinux_1_1_aarch64" } - { python-version: "pypy3", wheel: "musllinux_1_1_x86_64" } steps: From f61e082eb278bfb300d4167c7c778c1cd06f98a6 Mon Sep 17 00:00:00 2001 From: bwoodsend Date: Mon, 20 Sep 2021 13:21:43 +0100 Subject: [PATCH 2/2] Test Linux wheel building workflow on PRs touching workflow's files. --- .github/workflows/deploy-wheels-linux.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-wheels-linux.yml b/.github/workflows/deploy-wheels-linux.yml index 4b42ee31..194086b6 100644 --- a/.github/workflows/deploy-wheels-linux.yml +++ b/.github/workflows/deploy-wheels-linux.yml @@ -4,6 +4,10 @@ on: push: branches: - main + pull_request: + paths: + - ".github/workflows/deploy-wheels-linux.yml" + - "scripts/build-manylinux-wheels.sh" release: types: - published @@ -75,7 +79,9 @@ jobs: run: twine upload --skip-existing dist/*.whl - name: Publish package to TestPyPI - if: github.repository == 'ultrajson/ultrajson' + if: | + github.repository == 'ultrajson/ultrajson' && + github.ref == 'refs/heads/main' env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.test_pypi_password }}