From 36e2f66730ab9f92c0e3b3b6d33495d82af5ee38 Mon Sep 17 00:00:00 2001 From: Linlang Date: Thu, 19 Dec 2024 17:22:34 +0800 Subject: [PATCH] rewrite deploy with macos --- .github/workflows/python-publish.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 43d369d55..a787849a6 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -109,10 +109,10 @@ jobs: strategy: matrix: buildplat: - - [macos-13, macosx_arm64, ""] - - [macos-13, macosx_x86_64, ""] - - [macos-14, macosx_arm64, ""] - - [macos-14, macosx_x86_64, ""] + - [macos-13, macosx_arm64] + - [macos-13, macosx_x86_64] + - [macos-14, macosx_arm64] + - [macos-14, macosx_x86_64] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v3 @@ -120,6 +120,19 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + make dev + - name: Build wheel on ${{ matrix.os }} + run: | + make build + - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.TESTPYPI_TOKEN }} + run: | + twine check dist/*.whl + # deploy_with_manylinux: # runs-on: ubuntu-latest