]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Improve 只在go,mod,sum文件修改才验证
authorqydysky <qydysky@foxmail.com>
Sat, 8 Apr 2023 17:42:45 +0000 (01:42 +0800)
committerqydysky <qydysky@foxmail.com>
Sat, 8 Apr 2023 17:42:45 +0000 (01:42 +0800)
.github/workflows/test.yml
README.md

index d2f2b64dbacb12efc8ac6c578d419c0f0cf16852..f2e77d54d7b2ae91ff431254582be3162556fb7f 100644 (file)
@@ -3,7 +3,11 @@ name: Test
 on:
   push:
     branches:
-    - '**'
+      - '**'
+    paths:
+      - '**.go'
+      - '**.mod'
+      - '**.sum'
 
 jobs:
   u-build:
index 81e8675c3932b9ec26f1acfdabff4f85978f453e..42cd8e6d8e7b56eefde15e3b1d7552f64639a36d 100644 (file)
--- 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部署