forked from anthdm/raptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (28 loc) · 891 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.PHONY: proto
PROTO_PATH := "../../go/pkg/mod/github.com/anthdm/[email protected]/actor"
build:
@go build -o bin/api cmd/api/main.go
@go build -o bin/ingress cmd/ingress/main.go
@go build -o bin/raptor cmd/cli/main.go
@go build -o bin/runtime cmd/runtime/main.go
ingress: build
@./bin/ingress
runtime: build
@./bin/runtime
api: build
@./bin/api --seed
test:
@./internal/_testdata/build.sh
@go test ./internal/*
proto:
protoc --go_out=. --go_opt=paths=source_relative --proto_path=$(PROTO_PATH) --proto_path=. proto/types.proto
clean:
@rm -rf bin/api
@rm -rf bin/wasmserver
@rm -rf bin/raptor
goex:
GOOS=wasip1 GOARCH=wasm go build -o examples/go/app.wasm examples/go/main.go
jsex:
javy compile examples/js/index.js -o examples/js/index.wasm
postgres:
docker run --name raptordb -e POSTGRES_PASSWORD=postgres -p 5432:5432 -d postgres