Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Run cargo hack against workspace #485

Merged
merged 2 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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