From 4c013d8fd6ca7c555c0adb92282b9a5e9b77846d Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 9 Apr 2023 01:42:45 +0800 Subject: [PATCH] =?utf8?q?Improve=20=E5=8F=AA=E5=9C=A8go,mod,sum=E6=96=87?= =?utf8?q?=E4=BB=B6=E4=BF=AE=E6=94=B9=E6=89=8D=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 6 +++++- README.md | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) 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部署 -- 2.39.2