From 7dd197b09f1bc5ca435ec0dfb57c5b853e66d64b Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Sun, 26 Jan 2025 17:17:51 -0600 Subject: [PATCH 1/2] release improvements --- .github/workflows/release-python.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 3cfc7fe1..5403e87f 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -7,6 +7,8 @@ on: - "**" pull_request: workflow_dispatch: + schedule: + - cron: '30 5 * * *' concurrency: group: wheels-${{ github.ref }} @@ -29,7 +31,7 @@ jobs: # https://github.com/github/feedback/discussions/7835#discussioncomment-1769026 buildplat: - [ubuntu-20.04, manylinux_x86_64] - - [ubuntu-20.04, manylinux_aarch64] + - [ubuntu-20.04-arm64, manylinux_aarch64] - [macos-14, macosx_*] - [windows-2019, win_amd64] python: ["cp39", "cp310", "cp311", "cp312", "cp313"] @@ -59,12 +61,6 @@ jobs: cache-dependency-path: 'bindings/python/pyproject.toml' allow-prereleases: true - - name: Set up QEMU - if: runner.os == 'Linux' - uses: docker/setup-qemu-action@v3 - with: - platforms: all - - name: Install pkg-config on MacOS if: runner.os == 'macOS' run: brew install pkg-config @@ -152,7 +148,7 @@ jobs: publish: # https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi needs: [collect_dist] - if: startsWith(github.ref, 'refs/tags/') + if: ${{ github.event_name != 'pull_request'}} runs-on: ubuntu-latest environment: release permissions: @@ -164,4 +160,10 @@ jobs: name: all-dist-${{ github.run_id }} path: dist/ - name: Publish distribution 📦 to PyPI + if: startsWith(github.ref, 'refs/tags/') uses: pypa/gh-action-pypi-publish@release/v1 + - name: Publish package distributions to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ + skip-existing: true From 3b086941ca8a2a713658cfcfb4ae8100fd520a31 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 27 Jan 2025 08:15:19 -0600 Subject: [PATCH 2/2] fix runner --- .github/workflows/release-python.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 5403e87f..36228084 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -31,7 +31,7 @@ jobs: # https://github.com/github/feedback/discussions/7835#discussioncomment-1769026 buildplat: - [ubuntu-20.04, manylinux_x86_64] - - [ubuntu-20.04-arm64, manylinux_aarch64] + - [ubuntu-24.04-arm, manylinux_aarch64] - [macos-14, macosx_*] - [windows-2019, win_amd64] python: ["cp39", "cp310", "cp311", "cp312", "cp313"]