From 1a5d21dbbbc268a8771fbc69281250071ced1276 Mon Sep 17 00:00:00 2001 From: Sunli Date: Sat, 21 Dec 2024 23:21:55 +0800 Subject: [PATCH] Update macos.yml --- .github/workflows/macos.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 06a10fe8a..3bb4e6536 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -8,11 +8,11 @@ on: jobs: build-python-sdk-macos: - runs-on: macos-14 + runs-on: ${{ matrix.os }} strategy: fail-fast: true matrix: - os-version: + os: - "10.12" - "13.0" - "14.0" @@ -49,7 +49,7 @@ jobs: - name: Build wheels - x86_64 uses: PyO3/maturin-action@v1 env: - MACOSX_DEPLOYMENT_TARGET: ${{ matrix.os-version }} + MACOSX_DEPLOYMENT_TARGET: ${{ matrix.os }} with: target: x86_64 args: -i python --out dist -m python/Cargo.toml @@ -60,7 +60,7 @@ jobs: if: ${{ matrix.python.universal2 }} uses: PyO3/maturin-action@v1 env: - MACOSX_DEPLOYMENT_TARGET: ${{ matrix.os-version }} + MACOSX_DEPLOYMENT_TARGET: ${{ matrix.os }} with: args: -i python --target universal2-apple-darwin --out dist -m python/Cargo.toml - name: Install built wheel - universal2 @@ -70,5 +70,5 @@ jobs: - name: Upload wheels uses: actions/upload-artifact@v4 with: - name: wheels-macos-${{ matrix.os-version }}-${{ matrix.python.version }} + name: wheels-macos-${{ matrix.os }}-${{ matrix.python.version }} path: dist