mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-05-18 00:47:48 +08:00
19 lines
324 B
Bash
19 lines
324 B
Bash
#!/bin/bash -e
|
|
|
|
# Not supported by flock:
|
|
# - plan9/*
|
|
# - js/wasm
|
|
# - wasp1/wasm
|
|
|
|
for row in $(go tool dist list -json | jq -r '.[] | @base64'); do
|
|
_jq() {
|
|
echo ${row} | base64 --decode | jq -r ${1}
|
|
}
|
|
|
|
GOOS=$(_jq '.GOOS')
|
|
GOARCH=$(_jq '.GOARCH')
|
|
|
|
echo "$GOOS/$GOARCH"
|
|
GOOS=$GOOS GOARCH=$GOARCH go build
|
|
done
|