Skip to content

fix(deps): update rust crate anyhow to 1.0.82 - autoclosed #71

fix(deps): update rust crate anyhow to 1.0.82 - autoclosed

fix(deps): update rust crate anyhow to 1.0.82 - autoclosed #71

Workflow file for this run

# This file is autogenerated by maturin v1.4.0 and was slightly modified manually
# To update, run
#
# maturin generate-ci github --zig
#
name: maturin
on:
push:
branches:
- master
tags:
- "*"
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
# Adapted from https://github.com/marketplace/actions/skip-duplicate-actions
pre_job:
continue-on-error: true
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
# https://github.com/marketplace/actions/skip-duplicate-actions#skip-concurrent-workflow-runs
concurrent_skipping: "same_content_newer"
# https://github.com/marketplace/actions/skip-duplicate-actions#cancel_others
# Don't cancel other jobs, they might be pushes to master
cancel_others: false
# https://github.com/marketplace/actions/skip-duplicate-actions#do_not_skip
do_not_skip: '["workflow_dispatch", "schedule", "merge_group", "release"]'
# https://github.com/marketplace/actions/skip-duplicate-actions#paths
paths: '["Cargo.*", "pyproject.toml", "python/**", "rust/**"]'
linux:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter --zig
sccache: "true"
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
windows:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: windows-latest
strategy:
matrix:
target: [x64, x86]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: "true"
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
macos:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: macos-latest
strategy:
matrix:
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: "true"
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
sdist:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
- name: Upload sdist
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing *