File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,15 +11,21 @@ builds=(
1111" freebsd_amd64"
1212" darwin_amd64" )
1313
14+ releases=" release/$( git describe --tags) "
15+ mkdir -p ${releases}
16+
1417for arch in " ${builds[@]} " ; do
1518 echo build for $arch
1619 echo ===========================================================================
17- bazel build --platforms=@io_bazel_rules_go//go/toolchain:$arch //:git-sync
18- done
1920
20- releases=" release/$( git describe --tags) "
21- mkdir -p ${releases}
21+ bazel build \
22+ --@io_bazel_rules_go//go/config:static \
23+ --platform_suffix=_$arch \
24+ --platforms=@io_bazel_rules_go//go/toolchain:$arch \
25+ //:git-sync
2226
23- for arch in " ${builds[@]} " ; do
24- cp -f $( pwd) /bazel-bin/${arch} _pure_stripped/git-sync $( pwd) /${releases} /git-sync_$arch
27+ # Not sure how to fix but bazel decided to change this path to something stupid instead of providing
28+ # an easy way to find builds for different platforms.
29+ cp -f $( pwd) /bazel-out/darwin-fastbuild_$arch -* /bin/git-sync_/git-sync $( pwd) /${releases} /git-sync_$arch
2530done
31+
You can’t perform that action at this time.
0 commit comments