Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Jan 2, 2024
1 parent 44a7070 commit 31dccff
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
Expand All @@ -13,17 +14,38 @@ permissions:
contents: read

jobs:
linux:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install maturin
run: pip install maturin
- name: Build wheels
run: maturin build --release
- name: Install fastcrc
run: pip install target/wheels/fastcrc*.whl
- name: Test
run: python tests/test_fastcrc.py

linux:
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -39,15 +61,15 @@ jobs:

windows:
runs-on: windows-latest
needs: test
strategy:
matrix:
target: [x64, x86]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: '3.12'
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
Expand All @@ -63,15 +85,15 @@ jobs:

macos:
runs-on: macos-latest
needs: test
strategy:
matrix:
target: [x86_64, aarch64]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: '3.12'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -86,6 +108,7 @@ jobs:

sdist:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v3
- name: Build sdist
Expand Down

0 comments on commit 31dccff

Please sign in to comment.