Skip to content

Commit

Permalink
turn miri back on for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
a10y committed Aug 20, 2024
1 parent 17ac1be commit aea4ae3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/miri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Miri
on:
push:
branches: ["develop"]
pull_request: {}
workflow_dispatch: {}

permissions:
Expand Down
3 changes: 3 additions & 0 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ impl Counter {
/// The number of generations used for training. This is taken from the [FSST paper].
///
/// [FSST paper]: https://www.vldb.org/pvldb/vol13/p2649-boncz.pdf
#[cfg(not(miri))]
const MAX_GENERATIONS: usize = 5;
#[cfg(miri)]
const MAX_GENERATIONS: usize = 2;

impl Compressor {
/// Build and train a `Compressor` from a sample corpus of text.
Expand Down

0 comments on commit aea4ae3

Please sign in to comment.