Skip to content

feat: fix some bugs, improve some perf, add some tests #5

feat: fix some bugs, improve some perf, add some tests

feat: fix some bugs, improve some perf, add some tests #5

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build-test:
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: macos-latest
target: x86_64-apple-darwin
name: Build & Test (${{ matrix.target }})
runs-on: ${{ matrix.os }}
env:
RA_TARGET: ${{ matrix.target }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup toolchain install stable --target ${{ matrix.target }} --profile minimal
- name: Build
run: cargo build --verbose --target ${{ matrix.target }}
- name: Run tests
run: cargo test --verbose --target ${{ matrix.target }}
lint:
name: Lint & Format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
run: |
rustup update stable
rustup default stable
rustup component add rustfmt
rustup component add clippy
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy -- -D warnings