Skip to content

fix(ci): skip offline workspace metadata in web-build.sh and clear 3 rune warnings - #2670

Merged
Hona merged 1 commit into
devfrom
fix/www-ci-metadata-offline
Nov 27, 2026
Merged

Hona merged 1 commit into
devfrom
fix/www-ci-metadata-offline

Conversation

@Hona

@Hona Hona commented Nov 27, 2026

Copy link
Copy Markdown
Member

Summary

  • Fix www CI failure in scripts/web-build.sh: copy_inter_faces previously ran cargo metadata --format-version 1 --offline --filter-platform wasm32-unknown-unknown whenever dep-info had no Inter-Regular.ttf entry (such as rune-www, which builds with default-features = false against the workspace's path rune). Because cargo metadata resolves every workspace member, --offline failed trying to fetch unrelated crates like toml_writer for rune-cli.
    • When dep-info is present and Cargo.lock contains no non-path (git/registry) rune package, skip cargo metadata entirely (dep-info already covers path crates).
    • When cargo metadata is still needed (git/registry rune or missing dep-info), try --offline first and fall back to without --offline if an unrelated workspace member has uncached crates.
  • Clear 3 rune compiler warnings:
    • crates/rune/src/a11y/roles.rs: remove duplicate unreachable Role::Article match arm.
    • crates/rune/src/window/spec.rs: allow dead_code on Erased::{handle, secondary} for release wasm32 builds without tooling.
    • crates/rune/src/overlay/after_hidden.rs: cfg-gate Event::{SyncAnswered, SyncFailed} and their step arms to Wayland-capable Unix targets and test.

Verification

  • bash -n scripts/web-build.sh passed.
  • cargo check -p rune, cargo check-wasm, and cargo check --release -p rune --no-default-features --target wasm32-unknown-unknown passed with 0 warnings in rune.
  • cargo test -p rune --lib overlay::after_hidden passed (6/6).

@Hona
Hona merged commit d48a6a0 into dev Nov 27, 2026
5 checks passed
@Hona
Hona deleted the fix/www-ci-metadata-offline branch November 27, 2026 23:19

This branch was successfully deployed

1 active deployment
release — 54b7ed73 Deployed Nov 27, 2026 by Hona via build #2002
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