Skip to content

differentiate alpine bin #176

differentiate alpine bin

differentiate alpine bin #176

Workflow file for this run

name: CI # Continuous Integration
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test Suite (${{ matrix.os-name }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
os-name: mac
features: default
- os: ubuntu-latest
os-name: ubuntu
features: default
- os: windows-latest
os-name: windows
features: default
- os: ubuntu-latest
os-name: android
target: aarch64-linux-android
features: termux --no-default-features
- os: ubuntu-latest
os-name: ish
target: i686-unknown-linux-musl
features: default
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- name: Run tests (cross)
if: ${{ matrix.target != null }}
uses: houseabsolute/actions-rust-cross@v0
with:
command: test
target: ${{ matrix.target }}
args: "--features ${{ matrix.features }} --workspace"
cross-version: 7b79041c9278769eca57fae10c74741f5aa5c14b
- name: Run tests (default)
if: ${{ matrix.target == null }}
run: cargo test --features ${{ matrix.features }} --workspace
rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Clippy check
run: cargo clippy --all-targets --all-features --workspace -- -D warnings