Skip to content

Commit

Permalink
Add build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lasa01 committed Jun 18, 2024
1 parent 3c077b8 commit 53a6c90
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Build

on:
push:
paths:
- "*.rs"
- "Cargo.lock"
- "Cargo.toml"
- "setup.py"
pull_request:
paths:
- "*.rs"
- "Cargo.lock"
- "Cargo.toml"
- "setup.py"
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
build:
strategy:
matrix:
os: [macos-13, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: 'requirements-dev.txt'
- name: Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Build
run: python setup.py build_rust --inplace

build-manylinux:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64

steps:
- uses: actions/checkout@v4
- name: Select Python version
run: echo "/opt/python/cp310-cp310/bin" >> $GITHUB_PATH
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Build
run: python setup.py build_rust --inplace

0 comments on commit 53a6c90

Please sign in to comment.