Skip to content

feat: add platform case matrix and wasm64 support - #457

Merged
LunaStev merged 2 commits into
wavefnd:masterfrom
LunaStev:feat/platform-case-matrix-wasm64
Sep 4, 2026
Merged

LunaStev merged 2 commits into
wavefnd:masterfrom
LunaStev:feat/platform-case-matrix-wasm64

Conversation

@LunaStev

@LunaStev LunaStev commented Sep 4, 2026

Copy link
Copy Markdown
Member

Summary

  • reorganize end-to-end Wave cases into automatically selected shared, shared/<arch>, and <os>/<arch> suites
  • add a readable TOML support/CI matrix and a dedicated architecture-aware cases.yml workflow
  • preserve and reclassify the existing regression corpus while expanding it to 626 Wave sources across supported and planned platforms
  • reserve Android, iOS, OpenBSD, NetBSD, Fuchsia, LoongArch64, Rhea, Korean K-RISC-V, SHAKTI, XiangShan, and T-Head roadmap suites without advertising unavailable backend support
  • add wasm64-unknown-unknown, Memory64 linking/execution, a 64-bit std allocator, and wasm64 regression coverage
  • lower struct, array, nested, pointer, and payload-variant projections rooted in aggregate constants without entering the mutable-address path
  • restore short-circuit lowering for && and ||, keep constant mutation/address-taking rejected, and add focused aggregate-constant cases
  • add portable standard-library cookbook examples for buffers, bytes, checked arithmetic, paths/text, and date-time round trips

CI design

tests/cases/cases.toml is the single source of truth. Every enabled target automatically receives the common suite, its architecture suite, and its OS/architecture suite. Planned cells remain syntax-checked but cannot enter CI while supported = false and ci = false.

The new Wave Cases workflow separates native Linux, native macOS, native Windows, cross-object, QEMU RISC-V, and WebAssembly jobs. Existing Rust workflow jobs retain compiler/unit/ABI validation and no longer duplicate the end-to-end case runner.

Validation

  • cargo fmt --all --check
  • cargo check --workspace --locked --jobs 2
  • cargo clippy --workspace --all-targets --locked --jobs 2 -- -D warnings
  • cargo test --workspace --locked --jobs 2
  • RUSTDOCFLAGS='-D warnings' cargo doc --workspace --locked --no-deps --jobs 2
  • WASM-only and core64-only feature checks
  • WebAssembly-focused Rust regressions: 2 passed
  • Python manifest/metadata unit tests: 14 passed
  • std policy and workflow YAML validation
  • 626/626 case sources pass wavec check
  • 240/240 Wave corpus sources pass wavec check
  • Linux amd64: 134 passed, 1 environment-caused socket skip, 0 failed
  • Linux RISC-V64, Windows ARM64, FreeBSD amd64, freestanding amd64, wasm32 bare, wasm32 WASI, and wasm64 compile matrices: 122-123 passed per target, 0 failed
  • WebAssembly host execution: wasm32 bare 20, WASI 20, wasm64 21 passed
  • LoongArch64 inline assembly assembled as a 64-bit elf64-loongarch object

Closes #449

Related roadmap: #93, #451, #452, #453, #454, #455

Organize end-to-end cases by OS and architecture, move them into a dedicated matrix workflow, and reserve future Wave/Whale targets. Add Memory64 code generation and runtime support, aggregate constant projections, short-circuit lowering, and broader standard-library examples.
@LunaStev
LunaStev merged commit 9649e38 into wavefnd:master Sep 4, 2026
20 checks passed
@LunaStev LunaStev mentioned this pull request Sep 30, 2026
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.

Fix backend panic when reading fields from aggregate constants

1 participant