Skip to content

Commit

Permalink
chore: add cpastcord
Browse files Browse the repository at this point in the history
  • Loading branch information
rootCircle committed Oct 2, 2024
1 parent 9cd0c09 commit 063e228
Show file tree
Hide file tree
Showing 9 changed files with 2,426 additions and 166 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: CI

on:
push:
branches:
- main
- master
pull_request:

jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
manylinux: auto
command: build
args: --release --sdist -o dist --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist

windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
command: build
args: --release -o dist --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist

macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: messense/maturin-action@v1
with:
command: build
args: --release -o dist --universal2 --find-interpreter
- name: Upload wheels
uses: actions/upload-artifact@v2
with:
name: wheels
path: dist

# release:
# name: Release
# runs-on: ubuntu-latest
# if: "startsWith(github.ref, 'refs/tags/')"
# needs: [ macos, windows, linux ]
# steps:
# - uses: actions/download-artifact@v2
# 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 *
8 changes: 6 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Format
run: cargo fmt --all --check
- name: Build
run: cargo build --verbose
run: cargo build --no-default-features --verbose
- name: Clippy
run: cargo clippy --no-default-features --all-targets -- -D warnings
- name: Run tests
run: cargo test --verbose --no-default-features
run: cargo test --no-default-features --verbose
Loading

0 comments on commit 063e228

Please sign in to comment.