mirror of
https://github.com/antonmedv/fx
synced 2024-11-01 21:40:20 +00:00
20 lines
383 B
JavaScript
20 lines
383 B
JavaScript
|
let goos = [
|
||
|
'linux',
|
||
|
'darwin',
|
||
|
'windows',
|
||
|
]
|
||
|
let goarch = [
|
||
|
'amd64',
|
||
|
'arm64',
|
||
|
]
|
||
|
|
||
|
await Promise.all(
|
||
|
goos.flatMap(GOOS =>
|
||
|
goarch.map(GOARCH =>
|
||
|
$`GOOS=${GOOS} GOARCH=${GOARCH} go build -o fx_${GOOS}_${GOARCH}`)))
|
||
|
|
||
|
await Promise.all(
|
||
|
goos.flatMap(GOOS =>
|
||
|
goarch.map(GOARCH =>
|
||
|
$`gh release upload ${process.env.RELEASE_VERSION} fx_${GOOS}_${GOARCH}`)))
|