Skip to content

Commit

Permalink
[sc-478] Update CI (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
FranchuFranchu authored Feb 27, 2024
1 parent 97de06f commit bd95a43
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: dsherret/rust-toolchain-file@v1
- uses: actions/cache@v2
with:
path: |
Expand All @@ -26,29 +26,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: dsherret/rust-toolchain-file@v1
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-test-${{ hashFiles('**/Cargo.lock') }}
- run: cargo test
- run: cargo test --release
- run: cargo test --release --features _fuzz --test fuzz
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: dsherret/rust-toolchain-file@v1
with:
components: rustfmt
- run: cargo fmt --check
bench:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- uses: dsherret/rust-toolchain-file@v1
- uses: actions/cache@v2
with:
path: |
Expand All @@ -65,4 +65,6 @@ jobs:
with:
incremental_files_only: false
config: ./cspell.json
files: "**/*.rs **/*.md"
files: |
**/*.rs
**/*.md
4 changes: 4 additions & 0 deletions benches/benches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ fn run_dir(path: &PathBuf, group: Option<String>, c: &mut Criterion) {

run_dir(entry, Some(group), c)
} else {
// Skip stress tests and sort.
if entry.components().any(|x| matches!(x.as_os_str().to_str(), Some("stress_tests" | "sort"))) {
continue;
}
if entry.extension().unwrap().to_str().unwrap() == "hvmc" {
run_file(entry, group.clone(), c);
}
Expand Down
4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
profile = "minimal"
channel = "nightly-2024-01-27"
components = ["rustfmt", "clippy"]
1 change: 0 additions & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ macro_rules! bi_enum {
pub(crate) use bi_enum;

#[test]
#[allow(non_local_definitions)]
fn test_bi_enum() {
use std::str::FromStr;
bi_enum! {
Expand Down

0 comments on commit bd95a43

Please sign in to comment.