Skip to content

Commit

Permalink
update macos release: actions/setup-python#825
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxiaoying committed May 9, 2024
1 parent 1c0f827 commit 2c71e35
Showing 1 changed file with 28 additions and 8 deletions.
36 changes: 28 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,10 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["windows-latest", "macos-latest"]
os: ["windows-latest", "macos-13"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: "macos-latest"
- os: "macos-13"
features: "--features integrated-auth-gssapi"
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -280,18 +280,16 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: "macos-${{ matrix.python-version }}"
name: "macos-arm-${{ matrix.python-version }}"
path: connectorx-python/target/wheels/*.whl

verify:
runs-on: ${{ matrix.os }}
# do not verify for linux-aarch for now
# needs: [win-and-mac, linux, linux-aarch, apple-arm]
needs: [win-and-mac, linux, apple-arm]
needs: [win-and-mac, linux]
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [macos-latest, ubuntu-latest, windows-latest]
os: [macos-13, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4

Expand All @@ -308,9 +306,31 @@ jobs:
pip install *.whl
python -c "import connectorx"
verify-arm:
runs-on: ${{ matrix.os }}
needs: [apple-arm]
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [macos-latest]
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- uses: actions/download-artifact@v4
with:
name: "macos-arm-${{ matrix.python-version }}"

- run: |
pip install *.whl
python -c "import connectorx"
upload:
runs-on: ubuntu-latest
needs: [verify]
needs: [verify, verify-arm]
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 2c71e35

Please sign in to comment.