Skip to content

Fix maturin sccache option (#32) #193

Fix maturin sccache option (#32)

Fix maturin sccache option (#32) #193

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- "*.*.*"
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
manylinux: auto
command: build
sccache: true
args: --release -o dist --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
# Docker with Apple Silicon
manylinux-aarch64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
target: aarch64-unknown-linux-gnu
command: build
sccache: true
args: --release -o dist --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
# ARM7
armv7:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
target: armv7
command: build
sccache: true
args: --release -o dist --find-interpreter
container: messense/manylinux_2_24-cross:armv7
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
musllinux-x86_64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
target: x86_64
command: build
sccache: true
args: --release -o dist --find-interpreter
manylinux: musllinux_1_1
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
musllinux-aarch64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
target: aarch64
command: build
sccache: true
args: --release -o dist --find-interpreter
manylinux: musllinux_1_1
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
command: build
sccache: true
args: --release -o dist --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
command: build
sccache: true
args: --release -o dist --target universal2-apple-darwin --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
release:
name: Release
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
needs:
[
macos,
linux,
windows,
manylinux-aarch64,
armv7,
musllinux-x86_64,
musllinux-aarch64,
]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: messense/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --skip-existing *