Add example compilation test to CI

Changes:
  * Make codec build command now is prefixed with "build"
  * A new "test" command to make
  * Add a Makefile for examples
This commit is contained in:
Lukas Herman
2020-12-18 20:26:10 -08:00
parent 3316476b30
commit 2f21d9e738
4 changed files with 47 additions and 42 deletions
+8
View File
@@ -0,0 +1,8 @@
examples := $(shell find * -maxdepth 0 -type d)
examples := $(filter-out internal,$(examples))
.PHONY: all $(examples)
all: $(examples)
$(examples):
cd $@ && go build