From b894db455a9bebc1b5bd6afa58268271ece0a598 Mon Sep 17 00:00:00 2001 From: Scott Andrews Date: Tue, 9 Dec 2025 10:23:08 -0500 Subject: [PATCH] Capture WIT interface for each component in CI Signed-off-by: Scott Andrews --- .github/workflows/ci.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d533141..fa2e07f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,6 +24,8 @@ jobs: run: cargo binstall --force cargo-component - name: Install wkg run: cargo binstall --force wkg + - name: Install wasm-tools + run: cargo binstall --force wasm-tools - name: Fetch wit run: make wit - name: Check for drift in generated wit @@ -39,6 +41,14 @@ jobs: name: components.tar path: components.tar retention-days: 7 + - name: Capture WIT + working-directory: ./lib + run: | + for component in *.wasm ; do + echo "::group::${component}" + wasm-tools component wit "${component}" + echo "::endgroup::" + done publish: if: startsWith(github.ref, 'refs/tags/')