|
|
|
@ -8,12 +8,16 @@ let goarch = [
|
|
|
|
|
'arm64',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
await $`go test ./...`
|
|
|
|
|
|
|
|
|
|
let name = (GOOS, GOARCH) => `fx_${GOOS}_${GOARCH}` + (GOOS === 'windows' ? '.exe' : '')
|
|
|
|
|
|
|
|
|
|
await Promise.all(
|
|
|
|
|
goos.flatMap(GOOS =>
|
|
|
|
|
goarch.map(GOARCH =>
|
|
|
|
|
$`GOOS=${GOOS} GOARCH=${GOARCH} go build -o fx_${GOOS}_${GOARCH}`)))
|
|
|
|
|
$`GOOS=${GOOS} GOARCH=${GOARCH} go build -o ${name(GOOS, GOARCH)}`)))
|
|
|
|
|
|
|
|
|
|
await Promise.all(
|
|
|
|
|
goos.flatMap(GOOS =>
|
|
|
|
|
goarch.map(GOARCH =>
|
|
|
|
|
$`gh release upload ${process.env.RELEASE_VERSION} fx_${GOOS}_${GOARCH}`)))
|
|
|
|
|
$`gh release upload ${process.env.RELEASE_VERSION} ${name(GOOS, GOARCH)}`)))
|
|
|
|
|