Skip to content

Commit d7c0c75

Browse files
authored
Capture WIT interface for each component in CI (#13)
Signed-off-by: Scott Andrews <scott@andrews.me>
1 parent 21490d8 commit d7c0c75

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
run: cargo binstall --force cargo-component
2525
- name: Install wkg
2626
run: cargo binstall --force wkg
27+
- name: Install wasm-tools
28+
run: cargo binstall --force wasm-tools
2729
- name: Fetch wit
2830
run: make wit
2931
- name: Check for drift in generated wit
@@ -39,6 +41,14 @@ jobs:
3941
name: components.tar
4042
path: components.tar
4143
retention-days: 7
44+
- name: Capture WIT
45+
working-directory: ./lib
46+
run: |
47+
for component in *.wasm ; do
48+
echo "::group::${component}"
49+
wasm-tools component wit "${component}"
50+
echo "::endgroup::"
51+
done
4252
4353
publish:
4454
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)