Skip to content

fix ci

fix ci #37

Workflow file for this run

name: CI
on:
push:
branches:
- main
- master
tags:
- 'v*'
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v4
- uses: messense/maturin-action@v1
with:
manylinux: auto
command: build
target: ${{ matrix.target }}
working-directory: xurdf-python
args: --release -o dist --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
path: xurdf-python/dist
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: messense/maturin-action@v1
with:
command: build
working-directory: xurdf-python
args: --release -o dist --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
path: xurdf-python/dist
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: messense/maturin-action@v1
with:
command: build
working-directory: xurdf-python
args: --release -o dist --universal2 --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: wheels
path: xurdf-python/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
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install --upgrade twine
twine upload --skip-existing *