Skip to content

Commit

Permalink
feat: Migrate release-CI to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Sunglasses committed Nov 21, 2024
1 parent 3aca9a8 commit a20da46
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions .github/workflows/release-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- v*
env:
UV_SYSTEM_PYTHON: 1
jobs:
macos:
runs-on: macos-12
Expand All @@ -12,7 +14,9 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -25,15 +29,15 @@ jobs:
args: -i python --release --out dist
- name: Install build wheel - x86_64
run: |
pip install --force-reinstall dist/robyn*.whl
uv pip install --force-reinstall dist/robyn*.whl
cd ~ && python -c 'import robyn'
- name: Build wheels - universal2
uses: PyO3/maturin-action@v1
with:
args: -i python --release --universal2 --out dist
- name: Install build wheel - universal2
run: |
pip install --force-reinstall dist/robyn*_universal2.whl
uv pip install --force-reinstall dist/robyn*_universal2.whl
cd ~ && python -c 'import robyn'
- name: Upload wheels
uses: actions/upload-artifact@v3
Expand All @@ -48,7 +52,9 @@ jobs:
target: [x64, x86]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.target }}
Expand All @@ -61,7 +67,7 @@ jobs:
- name: Install build wheel
shell: bash
run: |
pip install --force-reinstall dist/robyn*.whl
uv pip install --force-reinstall dist/robyn*.whl
cd ~ && python -c 'import robyn'
- name: Upload wheels
uses: actions/upload-artifact@v3
Expand All @@ -77,7 +83,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-python@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build Wheels
Expand All @@ -89,7 +97,7 @@ jobs:
- name: Install build wheel
if: matrix.target == 'x86_64'
run: |
pip install --force-reinstall dist/robyn*.whl
uv pip install --force-reinstall dist/robyn*.whl
cd ~ && python -c 'import robyn'
- name: Upload wheels
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -158,13 +166,15 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: wheels
- uses: actions/setup-python@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Publish to PyPi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install --upgrade twine
uv pip install --upgrade twine
twine upload --skip-existing *

0 comments on commit a20da46

Please sign in to comment.