From b4dac34073e4f281281ac906b03d677d85c52f09 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Mar 2026 20:17:07 +0000 Subject: [PATCH] Modernize GitHub Actions workflow: fix macos-13 removal and Node.js 20 deprecation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace removed macos-13 runner with macos-15-intel for x86_64 builds - Upgrade macos-14 to macos-15 for aarch64 builds - Bump actions/checkout v4 → v6 (Node.js 24 support) - Bump actions/setup-python v5 → v6 (Node.js 24 support) - Bump actions/upload-artifact v4 → v6 (Node.js 24 support) - Bump actions/download-artifact v4 → v7 (Node.js 24 support) https://claude.ai/code/session_01KDSfy998W8oiQ61iVtoNMv --- .github/workflows/publish.yml | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c1b5735..1b17d0e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,10 +1,11 @@ -# This file is autogenerated by maturin v1.7.1 and then manually modified +# This file is autogenerated by maturin and then manually modified # To update, run # # maturin generate-ci --zig github # # This file was modified slightly after autogeneration by maturin +# Last updated: 2026-03-15 - modernized action versions and runners name: Publish @@ -35,8 +36,8 @@ jobs: python-architecture: arm64 python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} architecture: ${{ matrix.python-architecture }} @@ -48,7 +49,7 @@ jobs: manylinux: auto before-script-linux: sudo apt-get install -y capnproto libcapnp-dev - name: Upload wheels - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: wheels-linux-${{ matrix.platform.target }}-python${{ matrix.python-version }} path: dist @@ -64,8 +65,8 @@ jobs: target: x86 python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} architecture: ${{ matrix.platform.target }} @@ -77,7 +78,7 @@ jobs: target: ${{ matrix.platform.target }} args: --release --out dist --interpreter python${{ matrix.python-version }} - name: Upload wheels - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: wheels-windows-${{ matrix.platform.target }}-python${{ matrix.python-version }} path: dist @@ -87,16 +88,16 @@ jobs: strategy: matrix: platform: - - runner: macos-13 + - runner: macos-15-intel target: x86_64 python-architecture: x64 - - runner: macos-14 + - runner: macos-15 target: aarch64 python-architecture: arm64 python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} architecture: ${{ matrix.platform.python-architecture }} @@ -108,7 +109,7 @@ jobs: target: ${{ matrix.platform.target }} args: --release --out dist --interpreter python${{ matrix.python-version }} - name: Upload wheels - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: wheels-macos-${{ matrix.platform.target }}-python${{ matrix.python-version }} path: dist @@ -116,14 +117,14 @@ jobs: sdist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Build sdist uses: PyO3/maturin-action@v1 with: command: sdist args: --out dist - name: Upload sdist - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v6 with: name: wheels-sdist path: dist @@ -133,7 +134,7 @@ jobs: runs-on: ubuntu-latest needs: [linux, windows, macos, sdist] steps: - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v7 - name: Publish to PyPI uses: PyO3/maturin-action@v1 env: