Skip to content

Commit

Permalink
chore: fix CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkaz001 committed Aug 5, 2024
1 parent 1991afa commit 0dcfce6
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ on:
type: boolean
default: false

env:
PYTHON_VERSION: '3.10'

permissions:
contents: read

Expand All @@ -33,9 +36,11 @@ jobs:
target: armv7
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.sha }}
- uses: actions/setup-python@v5
with:
python-version: 3.10
python-version: ${{ env.PYTHON_VERSION }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -62,9 +67,11 @@ jobs:
target: armv7
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.sha }}
- uses: actions/setup-python@v5
with:
python-version: 3.10
python-version: ${{ env.PYTHON_VERSION }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -87,9 +94,11 @@ jobs:
target: x64
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.sha }}
- uses: actions/setup-python@v5
with:
python-version: 3.10
python-version: ${{ env.PYTHON_VERSION }}
architecture: ${{ matrix.platform.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
Expand All @@ -114,9 +123,11 @@ jobs:
target: aarch64
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.sha }}
- uses: actions/setup-python@v5
with:
python-version: 3.10
python-version: ${{ env.PYTHON_VERSION }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -133,6 +144,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.sha }}
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
Expand All @@ -152,6 +165,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
- name: Publish to PyPI
if: inputs.dry-run == false
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
Expand Down

0 comments on commit 0dcfce6

Please sign in to comment.