Bump tzf-rs from 0.4.1 to 0.4.3 (#28) #182
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: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "*.*.*" | |
pull_request: | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- 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 | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- 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 | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- 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 | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- 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 | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- 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 | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- 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 | |
- name: Cache | |
uses: Swatinem/rust-cache@v2 | |
- 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: "startsWith(github.ref, 'refs/tags/')" | |
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 * |