Bump KyleMayes/install-llvm-action from 2.0.2 to 2.0.3 #99
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: Release package | |
on: | |
push: | |
tags: ['v*'] | |
branches: ['main'] | |
pull_request: | |
branches: ['release/v*', 'main'] | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: messense/maturin-action@v1 | |
with: | |
manylinux: auto | |
command: build | |
container: messense/manylinux2014-cross:x86_64 | |
args: --manifest-path tsar-py/Cargo.toml --release -o dist | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: tsar-linux | |
path: dist | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: KyleMayes/install-llvm-action@v2.0.3 | |
with: | |
version: "12.0" | |
- uses: messense/maturin-action@v1 | |
with: | |
command: build | |
args: --manifest-path tsar-py/Cargo.toml --release -o dist | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: tsar-windows | |
path: dist | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: messense/maturin-action@v1 | |
with: | |
command: build | |
args: --manifest-path tsar-py/Cargo.toml --release -o dist --universal2 | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: tsar-macos | |
path: dist | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
if: "startsWith(github.ref, 'refs/tags/')" | |
needs: [ macos, windows, linux ] | |
steps: | |
- uses: actions/download-artifact@v4 | |
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 * |