From: qydysky Date: Sat, 8 Apr 2023 17:42:45 +0000 (+0800) Subject: Improve 只在go,mod,sum文件修改才验证 X-Git-Tag: v0.8.0~5 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=4c013d8fd6ca7c555c0adb92282b9a5e9b77846d;p=bili_danmu%2F.git Improve 只在go,mod,sum文件修改才验证 --- diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d2f2b64..f2e77d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,11 @@ name: Test on: push: branches: - - '**' + - '**' + paths: + - '**.go' + - '**.mod' + - '**.sum' jobs: u-build: diff --git a/README.md b/README.md index 81e8675..42cd8e6 100644 --- a/README.md +++ b/README.md @@ -453,8 +453,8 @@ go build -v -tags `gtk` -o demo.exe -i main.go clone/下载本项目。进入`demo`目录(文件夹),运行: ``` -linux: CGO_ENABLED=0 go build [-tags "gtk"] . -windows: set CGO_ENABLED=0;go build [-tags "gtk"] . +linux: CGO_ENABLED=0 go build . +windows: set CGO_ENABLED=0;go build . ``` 再运行生成的`demo.exe`或`demo` @@ -464,8 +464,8 @@ windows: set CGO_ENABLED=0;go build [-tags "gtk"] . clone/下载本项目。进入`demo`目录(文件夹),运行: ``` -linux: CGO_ENABLED=0 go run [-tags "gtk"] . [-r 房间ID] [-ckv 自定义config_K_v.json] -windows: set CGO_ENABLED=0;go run [-tags "gtk"] . [-r 房间ID] [-ckv 自定义config_K_v.json] +linux: CGO_ENABLED=0 go run . [-r 房间ID] [-ckv 自定义config_K_v.json] +windows: set CGO_ENABLED=0;go run . [-r 房间ID] [-ckv 自定义config_K_v.json] ``` 3. docker部署