From bb03bca3ee7ab549d2060342a0e192a7e3f8af8c Mon Sep 17 00:00:00 2001 From: Paul Hummer Date: Sun, 7 Sep 2025 13:13:43 -0600 Subject: [PATCH] chore: add more ci optimizations This patch breaks up the ci jobs a little farther to decrease turnaround time for workflow feedback. --- .github/workflows/{ci.yml => pr.yml} | 35 +++++++++++++++++----------- 1 file changed, 22 insertions(+), 13 deletions(-) rename .github/workflows/{ci.yml => pr.yml} (62%) diff --git a/.github/workflows/ci.yml b/.github/workflows/pr.yml similarity index 62% rename from .github/workflows/ci.yml rename to .github/workflows/pr.yml index 844bf24..73bc53c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/pr.yml @@ -14,7 +14,6 @@ jobs: os: [Ubuntu, macOS, windows] env: RUSTFLAGS: "-D warnings" - steps: - uses: actions/checkout@v3 - name: Build @@ -23,24 +22,34 @@ jobs: run: cargo test --verbose --all-features --all-targets - name: Build examples run: cargo test --examples - check: + clippy: + name: Run clippy + runs-on: ubuntu-latest + env: + RUSTFLAGS: "-D warnings" + steps: + - uses: actions/checkout@v3 + - run: rustup component add clippy + - run: cargo clippy + deny: + name: Run cargo-deny + runs-on: ubuntu-latest + env: + RUSTFLAGS: "-D warnings" + steps: + - uses: actions/checkout@v3 + - uses: EmbarkStudios/cargo-deny-action@v2 + with: + command: check + format: name: Perform various checks runs-on: ubuntu-latest env: RUSTFLAGS: "-D warnings" steps: - uses: actions/checkout@v3 - - name: Install clippy, rustfmt and cargo-deny - run: | - rustup component add clippy - rustup component add rustfmt - cargo install cargo-deny - - name: Check lint - run: cargo clippy - - name: Check format - run: cargo fmt -- --check - - name: Run cargo deny - run: cargo deny check + - run: rustup component add rustfmt + - run: cargo fmt -- --check semver-checks: name: Semver checks runs-on: ubuntu-latest