Skip to content

ci: check no_std and WASM builds, harden workflow - #86

Open
evanlinjin wants to merge 1 commit into
bitcoindevkit:masterfrom
evanlinjin:ci/no-std-wasm
Open

evanlinjin wants to merge 1 commit into
bitcoindevkit:masterfrom
evanlinjin:ci/no-std-wasm

Conversation

@evanlinjin

Copy link
Copy Markdown
Member

Description

Stage 1 of fixing the required status checks on master.

The Default Branch ruleset requires 14 checks copied from an older bdk_wallet CI (miniscript/no-std, bdk_chain/hashbrown, and so on). Nothing in this repo reports them, so every PR sits on "Expected — waiting for status" indefinitely.

This PR ports the bdk_wallet jobs that make sense for this crate:

  • Check no_std: cargo check --no-default-features. The crate is #![no_std] with an optional std feature, but CI never built it without default features.
  • Check WASM: cargo check --target wasm32-unknown-unknown --no-default-features. The crate is pure Rust, so bdk_wallet's clang setup isn't needed.
  • Hardening: permissions: {} at the workflow level and persist-credentials: false on every checkout.

Left out: the ARM runner matrix (little value for integer arithmetic), code coverage (needs a CODECOV_TOKEN secret) and zizmor.

Follow-up (needs a repo admin)

Replace the ruleset's required checks with the jobs this repo actually runs:
Rustfmt, clippy_check, build-msrv, test, doc-build, Check no_std, Check WASM.

Checklists

  • cargo check --no-default-features and the WASM check pass locally
  • cargo fmt, clippy, doc and test pass locally

🤖 Generated with Claude Code

Add `Check no_std` and `Check WASM` jobs, modelled on bdk_wallet's CI.
The crate is `#![no_std]` with an optional `std` feature, but nothing
previously built it without default features.

Also set `permissions: {}` and `persist-credentials: false` on every
checkout so jobs don't hold a token they never use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant