mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-11-03 10:21:00 +08:00
Added Makefile commands for building local binary
This commit is contained in:
12
Makefile
12
Makefile
@@ -1,10 +1,16 @@
|
||||
run:
|
||||
docker-compose up --build
|
||||
|
||||
build-local:
|
||||
CGO_ENABLED=1 go build -buildmode=plugin -o ./bin/modules/module_set/module_set.so ./volumes/modules/module_set/module_set.go && \
|
||||
CGO_ENABLED=1 go build -buildmode=plugin -o ./bin/modules/module_get/module_get.so ./volumes/modules/module_get/module_get.go && \
|
||||
CGO_ENABLED=1 go build -o ./bin ./cmd/...
|
||||
|
||||
|
||||
build-modules-test:
|
||||
CGO_ENABLED=1 go build --race=$(RACE) -buildmode=plugin -o $(OUT)/modules/module_set/module_set.so ./volumes/modules/module_set/module_set.go && \
|
||||
CGO_ENABLED=1 go build --race=$(RACE) -buildmode=plugin -o $(OUT)/modules/module_get/module_get.so ./volumes/modules/module_get/module_get.go
|
||||
|
||||
run:
|
||||
docker-compose up --build
|
||||
|
||||
test:
|
||||
env RACE=false OUT=internal/modules/admin/testdata make build-modules-test && \
|
||||
env RACE=false OUT=echovault/testdata make build-modules-test && \
|
||||
|
||||
Reference in New Issue
Block a user