Skip to content

Commit

Permalink
ci: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxOhn committed Dec 3, 2024
1 parent 27e8b84 commit 306a8c8
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Largely references https://github.com/pydantic/pydantic-core/blob/193f5d7a8627c988b1c7fab9a3712c779afbbe94/.github/workflows/ci.yml
# Largely references https://github.com/pydantic/pydantic-core/blob/be87e05d70afafb7aacc0bb9371ecb4c6ab7e5be/.github/workflows/ci.yml

name: CI

Expand Down Expand Up @@ -81,6 +81,9 @@ jobs:
- os: linux
manylinux: musllinux_1_1
target: aarch64
- os: linux
manylinux: musllinux_1_1
target: armv7

# macos
- os: macos
Expand All @@ -95,6 +98,11 @@ jobs:
target: aarch64
interpreter: 3.11 3.12 3.13

exclude:
# Disabled for now.
- os: windows
target: aarch64

runs-on: ${{ (matrix.os == 'linux' && 'ubuntu') || matrix.os }}-latest

steps:
Expand All @@ -104,20 +112,21 @@ jobs:
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.13'
architecture: x64

- run: pip install -U twine 'ruff==0.1.3' typing_extensions
- run: pip install -U twine 'ruff==0.5.0' typing_extensions

- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
manylinux: ${{ matrix.manylinux }}
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10' }}
rust-toolchain: 1.77.0
rust-toolchain: ${{ (matrix.os == 'windows' && '1.77') || 'stable' }}
docker-options: -e CI
sccache: true

- run: ${{ (matrix.os == 'windows' && 'dir') || 'ls -lh' }} dist/

- run: twine check --strict dist/*

Expand Down Expand Up @@ -195,7 +204,7 @@ jobs:
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.13'

- name: Get artifacts
uses: actions/download-artifact@v4
Expand All @@ -222,7 +231,7 @@ jobs:
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.13'

- run: pip install -U twine

Expand Down

0 comments on commit 306a8c8

Please sign in to comment.