From 6a467cdede3c22116c14a56c8d7cca3b3942d8f4 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Wed, 30 Oct 2024 17:26:42 +0100 Subject: [PATCH] Update CI. --- .github/workflows/build.yml | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ed3987f..611d405c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,12 +7,12 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-20.04, macos-11, windows-2019] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + os: [ubuntu-20.04, macos-12, windows-2019] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Build & install @@ -68,13 +68,23 @@ jobs: fi ) && PYTHONFAULTHANDLER=1 PYTHONIOENCODING=utf-8 ./run-examples.py - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: - name: wheels - path: dist/ + name: wheel-${{ matrix.os }}-${{ matrix.python-version }} + path: dist/*.whl if: ${{ always() }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: result_images-${{ matrix.os }}-py${{ matrix.python-version }} path: result_images/ if: ${{ failure() }} + + merge-wheels: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/upload-artifact/merge@v4 + with: + name: wheels + pattern: wheel-* + delete-merged: true