]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Add pgo
authorqydysky <qydysky@foxmail.com>
Wed, 19 Jul 2023 11:21:18 +0000 (19:21 +0800)
committerqydysky <qydysky@foxmail.com>
Wed, 19 Jul 2023 11:21:18 +0000 (19:21 +0800)
.github/workflows/go.yml
.github/workflows/test.yml
demo/default.pgo [new file with mode: 0644]

index 78f3e5abe0b48acd703dd43c08d6a65e151a6010..1f6cd24a1958f4806d7d4fca4a78ccdd21741787 100644 (file)
@@ -64,7 +64,7 @@ jobs:
         git rev-parse --short HEAD > VERSION
         cd demo
         go get .
-        CGO_ENABLED=0 go build -v -buildmode=exe -o demo.run main.go
+        CGO_ENABLED=0 go build -pgo=auto -v -buildmode=exe -o demo.run main.go
       
     - name: zip
       run: zip -q -r ubuntu_go${{ matrix.go }}.zip demo
@@ -98,7 +98,7 @@ jobs:
         cd demo
         set CGO_ENABLED=0
         go get .
-        go build -v -buildmode=exe -o demo.exe main.go
+        go build -pgo=auto -v -buildmode=exe -o demo.exe main.go
         
     - name: zip
       run: .\7za.exe a -r .\windows_go${{ matrix.go }}.zip ./demo
index 9226b8ba39681cf34972a0999cd7cc99e2ff9f50..1ad92533ef1fe4edea1530e22d1750e0a8631826 100644 (file)
@@ -67,7 +67,7 @@ jobs:
         sudo apt-get update
         sudo apt-get install libgtk-3-dev libcairo2-dev libglib2.0-dev
         go get .
-        CGO_ENABLED=0 go build -v -buildmode=exe -o demo.run main.go
+        CGO_ENABLED=0 go build -pgo=auto -v -buildmode=exe -o demo.run main.go
       
     - name: zip
       run: zip -q -r ubuntu_go${{ matrix.go }}.zip demo
@@ -99,7 +99,7 @@ jobs:
         cd demo
         go get .
         set CGO_ENABLED=0
-        go build -v -buildmode=exe -o demo.exe main.go
+        go build -pgo=auto -v -buildmode=exe -o demo.exe main.go
         
     - name: zip
       run: .\7za.exe a -r .\windows_go${{ matrix.go }}.zip ./demo
diff --git a/demo/default.pgo b/demo/default.pgo
new file mode 100644 (file)
index 0000000..e477d99
Binary files /dev/null and b/demo/default.pgo differ