diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..50cbedc --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Build and Lints + +on: + push: + branches: ["main"] + pull_request: + branches: ["*"] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Clippy + run: cargo clippy -- -D clippy::all diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cfe776f..2d306c5 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Tests and Benchmarks on: push: @@ -15,9 +15,7 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Build - run: cargo build --verbose - - name: Clippy - run: cargo clippy -- -D clippy::all - name: Run tests run: cargo test --verbose + - name: Run benchmarks + run: cargo bench -F benches