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
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
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
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