Skip to content

Commit

Permalink
feat: Run cargo hack against workspace (#485)
Browse files Browse the repository at this point in the history
* feat: cargo hack against workspace

* feat: cargo hack against workspace
  • Loading branch information
refcell authored Sep 4, 2024
1 parent 858d578 commit 6212a1c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/rust_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,21 @@ jobs:
run: just lint-docs
- name: doctest
run: just test-docs
cargo-hack:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.PAT_TOKEN }}
- uses: taiki-e/install-action@just
- name: Install Rust stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: cargo hack
run: just hack
1 change: 1 addition & 0 deletions crates/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ online = [
"alloy-provider/reqwest",
"alloy-consensus/serde",
"kona-primitives/online",
"kona-primitives/serde",
]
test-utils = [
"dep:spin",
Expand Down
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ alias f := fmt-native-fix
alias b := build
alias d := docker-build-ts
alias r := docker-run-ts
alias h := hack

# default recipe to display help information
default:
Expand All @@ -14,6 +15,10 @@ default:
# Run all tests
tests: test test-docs

# Runs `cargo hack check` against the workspace
hack:
cargo hack check --feature-powerset --no-dev-deps

# Test for the native target with all features
test *args='':
cargo nextest run --workspace --all --all-features $@
Expand Down

0 comments on commit 6212a1c

Please sign in to comment.