ci: add freebsd build targets

This commit is contained in:
Toby 2022-08-06 11:19:37 -07:00
parent 345836abc4
commit 21382fe39c
2 changed files with 6 additions and 2 deletions

View file

@ -33,7 +33,7 @@ jobs:
go_version: 1.18
dest: dist
prefix: hysteria
targets: linux/amd64,linux/386,linux/arm-5,linux/arm-7,linux/arm64,linux/s390x,linux/mipsle,darwin-10.12/amd64,darwin-10.12/arm64,windows-6.0/amd64,windows-6.0/386
targets: linux/amd64,linux/386,linux/arm-5,linux/arm-7,linux/arm64,linux/s390x,linux/mipsle,darwin-10.12/amd64,darwin-10.12/arm64,windows-6.0/amd64,windows-6.0/386,freebsd/amd64,freebsd/386,freebsd/arm,freebsd/arm64
ldflags: -w -s -X main.appCommit=${{ github.sha }} -X main.appDate=${{ env.TIME }}
pkg: cmd

View file

@ -48,7 +48,7 @@ jobs:
name: hysteria
dest: dist
ldflags: -w -s -X main.appVersion=${{ env.GIT_TAG_NAME }} -X main.appCommit=${{ github.sha }} -X main.appDate=${{ env.TIME }}
platforms: 'linux/amd64, linux/386, linux/arm, linux/arm64, linux/s390x, linux/mipsle'
platforms: 'linux/amd64, linux/386, linux/arm, linux/arm64, linux/s390x, linux/mipsle, freebsd/amd64, freebsd/386, freebsd/arm, freebsd/arm64'
package: cmd
compress: false
@ -81,4 +81,8 @@ jobs:
./dist/hysteria-linux-arm64
./dist/hysteria-linux-s390x
./dist/hysteria-linux-mipsle
./dist/hysteria-freebsd-amd64
./dist/hysteria-freebsd-386
./dist/hysteria-freebsd-arm
./dist/hysteria-freebsd-arm64
./dist/hashes.txt