fix: improve syntax and benchmark #66
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
tags: | |
- '*' | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Caching objects | |
id: cache-objects | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.cargo | |
${{ github.workspace }}/target | |
key: ${{ runner.os }}-rust-objects | |
- name: pre-commit | |
run: | | |
pip install pre-commit | |
pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks | |
pre-commit run --all-files | |
- name: Build | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Code coverage | |
run: | | |
cargo install cargo-llvm-cov | |
# rustup component add llvm-tools-preview --toolchain stable-x86_64-unknown-linux-gnu | |
cargo llvm-cov | |
# - name: Install Miri | |
# run: | | |
# rustup toolchain install nightly --component miri | |
# rustup override set nightly | |
# cargo miri setup | |
# - name: Test with Miri | |
# run: cargo miri test |