From 360e3347be6997057d04b18c90774207a4af8728 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Tue, 3 Aug 2021 13:19:44 +0200 Subject: [PATCH] Travis+make: compile JSON/WASM stubs --- .travis.yml | 2 +- Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d631b30..06f2f6e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,7 @@ sudo: required script: - export GO111MODULE=on - - make lint unit build mod-check + - make lint unit build mod-check rpc-js-compile - make tags=dev after_script: diff --git a/Makefile b/Makefile index 814a89e..56f79b7 100644 --- a/Makefile +++ b/Makefile @@ -80,3 +80,7 @@ rpc: rpc-check: rpc @$(call print, "Verifying protos.") if test -n "$$(git describe --dirty | grep dirty)"; then echo "Protos not properly formatted or not compiled with correct version!"; git status; git diff; exit 1; fi + +rpc-js-compile: + @$(call print, "Compiling JSON/WASM stubs.") + GOOS=js GOARCH=wasm $(GOBUILD) $(PKG)/looprpc