ci: fix web embed

This commit is contained in:
levi committed 2022-11-01 15:30:45 +08:00
1 parent bf8e24a6af
commit cf60e5a60a
5 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -199,7 +199,7 @@ jobs:
for goos in "${goos_arr[@]}"; do
for goarch in "${goarch_arr[@]}"; do
dir="dist/gopeed-$VERSION-$goos-$goarch/"
(GOOS=$goos GOARCH=$goarch go build -tags nosqlite -ldflags="-s -w" -o $dir github.com/monkeyWie/gopeed/cmd/web \
(GOOS=$goos GOARCH=$goarch go build -tags nosqlite,web -ldflags="-s -w" -o $dir github.com/monkeyWie/gopeed/cmd/web \
&& cd $dir \
&& rename 's/^web/gopeed/' * \
&& zip -r ../zip/gopeed-web-$VERSION-$goos-$goarch.zip * \
+1 -1
View File
@@ -40,7 +40,7 @@ jobs:
go-version: '^1.19'
cache: true
- name: Run Unit tests.
run: go test ./... -v -covermode=count -coverprofile=coverage.txt
run: go test $(go list ./... | grep -v /cmd/ | grep -v /bind/ ) -v -covermode=count -coverprofile=coverage.txt
- uses: codecov/codecov-action@v3
with:
files: ./coverage.txt