|
@@ -1,86 +0,0 @@
|
|
|
-project_name: chrome_checker
|
|
|
-
|
|
|
-env:
|
|
|
- - GO111MODULE=on
|
|
|
-
|
|
|
-before:
|
|
|
- hooks:
|
|
|
- - go mod tidy
|
|
|
- - sudo apt-get update -y
|
|
|
- - sudo apt-get install gcc-multilib
|
|
|
- - sudo apt-get install -y *-w64-x86-*
|
|
|
- - sudo apt-get install gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu gcc-arm-linux-gnueabi g++-arm-linux-gnueabihf g++-aarch64-linux-gnu g++-arm-linux-gnueabi
|
|
|
- # https://github.com/goreleaser/goreleaser-cross 交叉编译的文档
|
|
|
-builds:
|
|
|
- - id: linux-amd64-build
|
|
|
- env:
|
|
|
- - CGO_ENABLED=1
|
|
|
- goos:
|
|
|
- - linux
|
|
|
- goarch:
|
|
|
- - amd64
|
|
|
- main: ./cmd/chrome_checker/main.go
|
|
|
- ldflags:
|
|
|
- - -s -w --extldflags "-static -fpic"
|
|
|
-
|
|
|
- - id: linux-armv7-build
|
|
|
- env:
|
|
|
- - CGO_ENABLED=1
|
|
|
- - CC=arm-linux-gnueabihf-gcc
|
|
|
- - CXX=arm-linux-gnueabihf-g++
|
|
|
- goos:
|
|
|
- - linux
|
|
|
- goarch:
|
|
|
- - arm
|
|
|
- goarm:
|
|
|
- - 7
|
|
|
- main: ./cmd/chrome_checker/main.go
|
|
|
- ldflags:
|
|
|
- - -s -w --extldflags "-static -fpic"
|
|
|
-
|
|
|
- - id: linux-arm64-build
|
|
|
- env:
|
|
|
- - CGO_ENABLED=1
|
|
|
- - CC=aarch64-linux-gnu-gcc
|
|
|
- - CXX=aarch64-linux-gnu-g++
|
|
|
- goos:
|
|
|
- - linux
|
|
|
- goarch:
|
|
|
- - arm64
|
|
|
- main: ./cmd/chrome_checker/main.go
|
|
|
- ldflags:
|
|
|
- - -s -w --extldflags "-static -fpic"
|
|
|
-
|
|
|
- - id: windows-build
|
|
|
- env:
|
|
|
- - CGO_ENABLED=1
|
|
|
- - CXX=x86_64-w64-mingw32-g++
|
|
|
- - CC=x86_64-w64-mingw32-gcc
|
|
|
- goos:
|
|
|
- - windows
|
|
|
- goarch:
|
|
|
- - amd64
|
|
|
- main: ./cmd/chrome_checker/main.go
|
|
|
- ldflags:
|
|
|
- - -s -w --extldflags "-static -fpic"
|
|
|
-
|
|
|
-archives:
|
|
|
- - id: archive
|
|
|
- name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
|
|
|
- replacements:
|
|
|
- darwin: Darwin
|
|
|
- linux: Linux
|
|
|
- windows: Windows
|
|
|
- amd64: x86_64
|
|
|
-checksum:
|
|
|
- name_template: "checksums.txt"
|
|
|
-snapshot:
|
|
|
- name_template: "{{ .Tag }}-next"
|
|
|
-changelog:
|
|
|
- sort: asc
|
|
|
- filters:
|
|
|
- exclude:
|
|
|
- - "^docs:"
|
|
|
- - "^test:"
|
|
|
- - "^TestData:"
|
|
|
- - "^TestCode:"
|