mirror of
https://github.com/Finesssee/ProxyPilot.git
synced 2026-11-18 18:04:20 +00:00
- Deleted `.goreleaser.yml` configuration and migrated functionality to GitHub Actions workflows. - Replaced `goreleaser` with matrix-based build and archiving process for improved flexibility. - Enhanced platform and architecture-specific builds, including FreeBSD support and custom runners. - Streamlined artifact upload, checksum generation, and release publishing.
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
before:
|
|
hooks:
|
|
# Remove Windows resource files before building
|
|
# These .syso files cause ARM64 cross-compile failures on Linux/Darwin
|
|
- find . -name "*.syso" -type f -delete || true
|
|
|
|
builds:
|
|
- id: "cli-proxy-api-plus"
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- windows
|
|
- darwin
|
|
- freebsd
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
ignore:
|
|
# Skip Windows ARM64 (not commonly used)
|
|
- goos: windows
|
|
goarch: arm64
|
|
main: ./cmd/server/
|
|
binary: cli-proxy-api-plus
|
|
ldflags:
|
|
- -s -w -X 'main.Version={{.Version}}-plus' -X 'main.Commit={{.ShortCommit}}' -X 'main.BuildDate={{.Date}}'
|
|
archives:
|
|
- id: "cli-proxy-api-plus"
|
|
format: tar.gz
|
|
name_template: >-
|
|
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{- if eq .Arch "arm64" -}}aarch64{{- else -}}{{ .Arch }}{{- end -}}
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
files:
|
|
- LICENSE
|
|
- README.md
|
|
- config.example.yaml
|
|
|
|
checksum:
|
|
name_template: 'checksums.txt'
|
|
|
|
snapshot:
|
|
name_template: "{{ incpatch .Version }}-next"
|
|
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- '^docs:'
|
|
- '^test:'
|