Skip to content

Allow for manual build #5

Allow for manual build

Allow for manual build #5

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
workflow_call:
inputs:
branch:
description: "Branch to checkout"
required: false
type: string
jobs:
build:
name: Build Binaries
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.8"]
steps:
- run: echo "$BRANCH"
env:
BRANCH: ${{ inputs.branch }}
- uses: actions/checkout@v3
with:
ref: '${{ inputs.branch }}'
if: "${{ inputs.branch != '' }}"
- uses: actions/checkout@v3
if: "${{ inputs.branch == '' }}"
- run: cat Cargo.toml
- name: Set up Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install maturin==0.13.2
- name: Build
uses: messense/maturin-action@v1
env:
RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt
with:
rust-toolchain: nightly
maturin-version: latest
command: build
args: --sdist
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: wheels
path: target/wheels