mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-15 21:03:41 +00:00
ci: fix web embed
This commit is contained in:
1 parent
bf8e24a6af
commit
cf60e5a60a
5 files changed
+5
-2
No files matched your search
@@ -199,7 +199,7 @@ jobs:
|
|||||||
for goos in "${goos_arr[@]}"; do
|
for goos in "${goos_arr[@]}"; do
|
||||||
for goarch in "${goarch_arr[@]}"; do
|
for goarch in "${goarch_arr[@]}"; do
|
||||||
dir="dist/gopeed-$VERSION-$goos-$goarch/"
|
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 \
|
&& cd $dir \
|
||||||
&& rename 's/^web/gopeed/' * \
|
&& rename 's/^web/gopeed/' * \
|
||||||
&& zip -r ../zip/gopeed-web-$VERSION-$goos-$goarch.zip * \
|
&& zip -r ../zip/gopeed-web-$VERSION-$goos-$goarch.zip * \
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ jobs:
|
|||||||
go-version: '^1.19'
|
go-version: '^1.19'
|
||||||
cache: true
|
cache: true
|
||||||
- name: Run Unit tests.
|
- 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
|
- uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
files: ./coverage.txt
|
files: ./coverage.txt
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
@@ -1,3 +1,6 @@
|
|||||||
|
//go:build web
|
||||||
|
// +build web
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
Reference in new issue
Block a user