Skip to content

release: v0.3.0 — meta-tool routing, IDF scoring, production polish #5

release: v0.3.0 — meta-tool routing, IDF scoring, production polish

release: v0.3.0 — meta-tool routing, IDF scoring, production polish #5

Workflow file for this run

name: CI
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Check & Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-features -- -D warnings
- name: Check
run: cargo check --all-features
test:
name: Test (${{ matrix.os }})
needs: check
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --all-features
build:
name: Build (${{ matrix.target }})
needs: test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
artifact: mcplex
- os: windows-latest
target: x86_64-pc-windows-msvc
artifact: mcplex.exe
- os: macos-latest
target: aarch64-apple-darwin
artifact: mcplex
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- name: Build release
run: cargo build --release --target ${{ matrix.target }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: mcplex-${{ matrix.target }}
path: target/${{ matrix.target }}/release/${{ matrix.artifact }}