File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 matrix :
4949 os : [ubuntu-latest]
5050 # os: [ubuntu-latest, macos-latest]
51- rust : [stable, nightly ]
51+ rust : [stable]
5252 fail-fast : false
5353 steps :
5454 - uses : actions/checkout@v3
@@ -65,13 +65,20 @@ jobs:
6565 brew install cmake
6666
6767 - name : Install Rust
68- uses : dtolnay/rust-toolchain@master
68+ uses : dtolnay/rust-toolchain@stable
6969 with :
7070 toolchain : ${{ matrix.rust }}
71+ components : clippy, rustfmt
7172
7273 - name : Cache dependencies
7374 uses : Swatinem/rust-cache@v2
7475
76+ - name : Check code format
77+ run : cargo fmt -- --check
78+
79+ - name : Clippy
80+ run : cargo clippy -- -D warnings
81+
7582 - name : Build
7683 run : cargo build --verbose
7784
Original file line number Diff line number Diff line change @@ -11,3 +11,5 @@ node_modules/
1111** /target /
1212tags
1313TAGS
14+ rust-toolchain.toml
15+ Cargo.lock
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ fn get_random_bytes(size: usize) -> Vec<u8> {
4747 unsafe {
4848 let data = match COUNTER {
4949 0 => ml_dsa_det_data,
50- _ => slh_dsa_det_data
50+ _ => slh_dsa_det_data,
5151 } ;
5252 COUNTER += 1 ;
5353 data
You can’t perform that action at this time.
0 commit comments