Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
c410-f3r committed Oct 19, 2023
1 parent 3773ea6 commit e5cfea8
Show file tree
Hide file tree
Showing 113 changed files with 1,818 additions and 3,185 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2

updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: daily

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: nightly-2023-10-15
profile: minimal
override: true

Expand All @@ -25,20 +25,20 @@ jobs:
crate: cargo-fuzz
use-tool-cache: true

- run: ./scripts/fuzz.sh
- run: .scripts/fuzz.sh

tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
components: clippy, rustfmt
toolchain: stable
toolchain: nightly-2023-10-15
profile: minimal
override: true

Expand All @@ -57,4 +57,4 @@ jobs:
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}

- name: Tests
run: ./scripts/tests.sh
run: .scripts/tests.sh
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.rs.bk
target
artifacts
corpus
target
6 changes: 6 additions & 0 deletions .scripts/fuzz.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -euxo pipefail

cargo fuzz run --features libfuzzer-sys/link_libfuzzer --fuzz-dir mop-fuzz dr_matrix -- -max_len=32 -runs=10000
cargo fuzz run --features libfuzzer-sys/link_libfuzzer --fuzz-dir mop-fuzz gp -- -max_len=32 -runs=10000
22 changes: 22 additions & 0 deletions .scripts/tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/env bash

set -euxo pipefail

cargo install rust-tools --git https://github.com/c410-f3r/regular-crates

rt='rust-tools --template you-rust'

export CARGO_TARGET_DIR="$($rt target-dir)"
export RUST_BACKTRACE=1
export RUSTFLAGS="$($rt rust-flags '' -Dmissing_docs,-Dunstable_features,-Dunused_crate_dependencies,-Dvariant_size_differences)"

$rt rustfmt
#$rt clippy

$rt test-generic mop
$rt test-with-features mop ndstruct
$rt test-with-features mop rand
$rt test-with-features mop rayon
$rt test-with-features mop serde
$rt test-with-features mop std
$rt test-with-features mop wasm-bindgen
Loading

0 comments on commit e5cfea8

Please sign in to comment.