mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-18 21:35:24 +01:00
GitHub+make: compile JSON/WASM stubs
This commit is contained in:
parent
702f0d7ced
commit
74dc883aa4
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
@ -55,7 +55,10 @@ jobs:
|
||||
|
||||
- name: run check
|
||||
run: make rpc-check
|
||||
|
||||
|
||||
- name: run JSON/WASM stub compilation check
|
||||
run: make rpc-js-compile
|
||||
|
||||
- name: build mobile RPC bindings
|
||||
run: make mobile-rpc
|
||||
|
||||
|
5
Makefile
5
Makefile
@ -290,6 +290,10 @@ rpc-check: rpc
|
||||
cd ./lnrpc; ../scripts/check-rest-annotations.sh
|
||||
if test -n "$$(git describe --dirty | grep dirty)"; then echo "Protos not properly formatted or not compiled with v3.4.0"; git status; git diff; exit 1; fi
|
||||
|
||||
rpc-js-compile:
|
||||
@$(call print, "Compiling JSON/WASM stubs.")
|
||||
GOOS=js GOARCH=wasm $(GOBUILD) -tags="$(RELEASE_TAGS)" $(PKG)/lnrpc/...
|
||||
|
||||
sample-conf-check:
|
||||
@$(call print, "Making sure every flag has an example in the sample-lnd.conf file")
|
||||
for flag in $$(GO_FLAGS_COMPLETION=1 go run -tags="$(RELEASE_TAGS)" $(PKG)/cmd/lnd -- | grep -v help | cut -c3-); do if ! grep -q $$flag sample-lnd.conf; then echo "Command line flag --$$flag not added to sample-lnd.conf"; exit 1; fi; done
|
||||
@ -350,6 +354,7 @@ clean-mobile:
|
||||
rpc \
|
||||
rpc-format \
|
||||
rpc-check \
|
||||
rpc-js-compile \
|
||||
mobile-rpc \
|
||||
vendor \
|
||||
ios \
|
||||
|
Loading…
Reference in New Issue
Block a user