Skip to content

feat: setup a banchmark to compare enum-toggles with a HashMap #63

feat: setup a banchmark to compare enum-toggles with a HashMap

feat: setup a banchmark to compare enum-toggles with a HashMap #63

Workflow file for this run

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