mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-03 06:13:17 +02:00
Merge pull request #73 from strukturag/parallel-make
Update make targets to support parallel building.
This commit is contained in:
commit
464a683e53
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
|
@ -39,8 +39,10 @@ jobs:
|
||||||
|
|
||||||
- name: Build applications
|
- name: Build applications
|
||||||
run: |
|
run: |
|
||||||
make client
|
echo "Building with $(nproc) threads"
|
||||||
make server
|
make client -j$(nproc)
|
||||||
|
make proxy -j$(nproc)
|
||||||
|
make server -j$(nproc)
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
|
|
14
Makefile
14
Makefile
|
@ -99,26 +99,26 @@ coverhtml: dependencies vet common
|
||||||
sed -i "/_easyjson/d" cover.out && \
|
sed -i "/_easyjson/d" cover.out && \
|
||||||
GOPATH=$(GOPATH) $(GO) tool cover -html=cover.out -o coverage.html
|
GOPATH=$(GOPATH) $(GO) tool cover -html=cover.out -o coverage.html
|
||||||
|
|
||||||
%_easyjson.go: %.go
|
%_easyjson.go: %.go easyjson
|
||||||
PATH=$(shell dirname $(GO)):$(PATH) GOPATH=$(GOPATH) ./vendor/bin/easyjson -all $*.go
|
PATH=$(shell dirname $(GO)):$(PATH) GOPATH=$(GOPATH) ./vendor/bin/easyjson -all $*.go
|
||||||
|
|
||||||
common: easyjson \
|
common: \
|
||||||
src/signaling/api_signaling_easyjson.go \
|
src/signaling/api_signaling_easyjson.go \
|
||||||
src/signaling/api_backend_easyjson.go \
|
src/signaling/api_backend_easyjson.go \
|
||||||
src/signaling/api_proxy_easyjson.go \
|
src/signaling/api_proxy_easyjson.go \
|
||||||
src/signaling/natsclient_easyjson.go \
|
src/signaling/natsclient_easyjson.go \
|
||||||
src/signaling/room_easyjson.go
|
src/signaling/room_easyjson.go
|
||||||
|
|
||||||
client: dependencies common
|
$(BINDIR):
|
||||||
mkdir -p $(BINDIR)
|
mkdir -p $(BINDIR)
|
||||||
|
|
||||||
|
client: dependencies common $(BINDIR)
|
||||||
GOPATH=$(GOPATH) $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o $(BINDIR)/client ./src/client/...
|
GOPATH=$(GOPATH) $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o $(BINDIR)/client ./src/client/...
|
||||||
|
|
||||||
server: dependencies common
|
server: dependencies common $(BINDIR)
|
||||||
mkdir -p $(BINDIR)
|
|
||||||
GOPATH=$(GOPATH) $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o $(BINDIR)/signaling ./src/server/...
|
GOPATH=$(GOPATH) $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o $(BINDIR)/signaling ./src/server/...
|
||||||
|
|
||||||
proxy: dependencies common
|
proxy: dependencies common $(BINDIR)
|
||||||
mkdir -p $(BINDIR)
|
|
||||||
GOPATH=$(GOPATH) $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o $(BINDIR)/proxy ./src/proxy/...
|
GOPATH=$(GOPATH) $(GO) build $(BUILDARGS) -ldflags '$(INTERNALLDFLAGS)' -o $(BINDIR)/proxy ./src/proxy/...
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
Loading…
Reference in a new issue