Replace serde_json with simd_json where supported #1992
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: maturin wheels | |
permissions: write-all | |
on: | |
pull_request: # use for testing modifications to this action | |
push: | |
branches: [latest] | |
tags: v* | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" # daily | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
target: [aarch64] | |
#target: [aarch64, ppc64le] | |
#target: [aarch64, s390x, ppc64le] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Build wheels | |
uses: PyO3/maturin-action@v1 | |
with: | |
target: ${{ matrix.target }} | |
args: --release --out dist --find-interpreter --zig --strip | |
sccache: 'true' | |
manylinux: auto | |
container: 'off' | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheel-${{ matrix.target }} | |
path: dist | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
architecture: ${{ matrix.target }} | |
- name: Build wheels | |
uses: PyO3/maturin-action@v1 | |
with: | |
target: x64 | |
args: --release --out dist --find-interpreter | |
sccache: 'true' | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheel-win64 | |
path: dist | |
release: | |
name: Publish wheels | |
runs-on: ubuntu-latest | |
if: startsWith(github.ref, 'refs/tags/v') | |
needs: [linux, windows] | |
steps: | |
- name: Fetch wheels from artifacts | |
id: fetch_artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: 'wheels/' | |
# if it matches a Python release tag, upload to github releases | |
# TODO: In the future, use the create-release and upload-release-assets actions | |
- name: Release | |
uses: fnkr/github-action-ghr@v1 | |
env: | |
GHR_PATH: ${{steps.fetch_artifacts.outputs.download-path}} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |