From 6d2f9aad874d7807aec1afd800a63e51b7183911 Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Sat, 26 Jun 2021 06:28:43 -0700 Subject: [PATCH] Publish macOS arm64 and universal2 wheels (#807) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mickaël Schoentgen --- .github/workflows/build-and-publish.yml | 9 ++++++++- .github/workflows/tests.yml | 7 ++++++- changelog.rst | 3 ++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 86239497f..73a8e7dc8 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -16,6 +16,11 @@ name: Build & Publish on: + pull_request: + paths: + - ".github/workflows/build-and-publish.yml" + - "setup.*" + workflow_dispatch: inputs: branch: @@ -40,6 +45,7 @@ jobs: run: python -m cibuildwheel env: CIBW_SKIP: "cp27-* cp35-* pp27-*" # skip 2.7 and 3.5 wheels + CIBW_ARCHS_MACOS: "x86_64 universal2 arm64" - uses: actions/upload-artifact@v2 with: name: python-package-distributions @@ -100,8 +106,9 @@ jobs: name: python-package-distributions path: dist/ - name: What will we publish? - run: ls dist + run: ls -l dist - name: Publish + if: github.event.inputs.branch != '' uses: pypa/gh-action-pypi-publish@master with: user: __token__ diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8b4dd249a..24ba6af92 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -2,7 +2,12 @@ name: Tests on: pull_request: - branches: '*' + paths: + - ".github/workflows/tests.yml" + - "requirements-tests.txt" + - "setup.*" + - "src/*" + - "tests/*.py" jobs: tests: diff --git a/changelog.rst b/changelog.rst index d51295b89..e7f963b73 100644 --- a/changelog.rst +++ b/changelog.rst @@ -8,7 +8,8 @@ Changelog 2021-0x-xx • `full history `__ -- Thanks to our beloved contributors: @ +- Publish macOS ``arm64`` and ``universal2`` wheels. (`#740 `_) +- Thanks to our beloved contributors: @kainjow, @BoboTiG 2.1.2 ~~~~~