Skip to content

Commit

Permalink
fix: fix context error
Browse files Browse the repository at this point in the history
  • Loading branch information
wwhai committed Feb 11, 2022
1 parent f0e5017 commit f230c2e
Show file tree
Hide file tree
Showing 70 changed files with 8,542 additions and 8,431 deletions.
1,322 changes: 661 additions & 661 deletions LICENSE

Large diffs are not rendered by default.

108 changes: 54 additions & 54 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
APP=rulex
VERSION=V0.0.1
.PHONY: all
all:
make build

.PHONY: build
build:
go mod tidy
chmod +x gen_version.sh
chmod +x gen_banner.sh
go generate
CGO_ENABLED=1 GOOS=linux
go build -v -ldflags "-s -w" -o ${APP} main.go

.PHONY: xx
xx:
make build

.PHONY: windows
windows:
go mod tidy
SET GOOS=windows
SET CGO_ENABLED=1
go build -ldflags "-s -w" -o ${APP}.exe main.go

.PHONY: arm32
arm32:
CC=arm-linux-gnueabi-gcc # Support ubuntu 1804, should install 'gcc-arm-linux-gnueabi'
GOARM=7
GOARCH=arm
GOOS=linux
CGO_ENABLED=1
go build -ldflags "-s -w" -o ${APP} -ldflags "-linkmode external -extldflags -static" main.go

.PHONY: run
run:
go run -race main.go run

.PHONY: test
test:
go test rulex/test -v

.PHONY: cover
cover:
go test rulex/test -v -cover

.PHONY: clean
clean:
go clean
rm _release -rf
rm *.db *log.txt

.PHONY: clean-grpc
APP=rulex
VERSION=V0.0.1
.PHONY: all
all:
make build

.PHONY: build
build:
go mod tidy
chmod +x gen_version.sh
chmod +x gen_banner.sh
go generate
CGO_ENABLED=1 GOOS=linux
go build -v -ldflags "-s -w" -o ${APP} main.go

.PHONY: xx
xx:
make build

.PHONY: windows
windows:
go mod tidy
SET GOOS=windows
SET CGO_ENABLED=1
go build -ldflags "-s -w" -o ${APP}.exe main.go

.PHONY: arm32
arm32:
CC=arm-linux-gnueabi-gcc # Support ubuntu 1804, should install 'gcc-arm-linux-gnueabi'
GOARM=7
GOARCH=arm
GOOS=linux
CGO_ENABLED=1
go build -ldflags "-s -w" -o ${APP} -ldflags "-linkmode external -extldflags -static" main.go

.PHONY: run
run:
go run -race main.go run

.PHONY: test
test:
go test rulex/test -v

.PHONY: cover
cover:
go test rulex/test -v -cover

.PHONY: clean
clean:
go clean
rm _release -rf
rm *.db *log.txt

.PHONY: clean-grpc
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# rulex
Rulex is a RuLE-LEX framework for edge computing (so called fog-computing), support various data sources and data flows. Rulex is designed to process data streams fast and reliable with IoT southern gateways.
# rulex
Rulex is a RuLE-LEX framework for edge computing (so called fog-computing), support various data sources and data flows. Rulex is designed to process data streams fast and reliable with IoT southern gateways.
Loading

0 comments on commit f230c2e

Please sign in to comment.