Skip to content

Allow toolchain channel configuration from pyproject.toml (#862) #792

Allow toolchain channel configuration from pyproject.toml (#862)

Allow toolchain channel configuration from pyproject.toml (#862) #792

Workflow file for this run

name: CI
on:
push:
branches:
- "master"
paths:
- 'crates/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/ci.yaml'
pull_request:
branches:
- "master"
paths:
- 'crates/**'
- 'Cargo.toml'
- 'Cargo.lock'
- '.github/workflows/ci.yaml'
env:
PACKAGE_NAME: huak
jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
name: Build and test
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- uses: actions/setup-python@v1
# We install instead of just build for insta-cmd TODO(cnpryer)
- name: Install huak
run: cargo install --path crates/huak-cli
- name: Test
run: cargo test --workspace --all-features
clippy-lints:
name: Clippy lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Run lints
env:
RUSTFLAGS: -C debuginfo=0
run: |
cargo clippy --all-features
cargo clippy -- -D warnings
format:
name: Formatting check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Run formatting check
run: |
cargo fmt --all -- --check
dry-release:
name: Build with maturin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
architecture: x64
- name: Build wheels
uses: PyO3/maturin-action@v1