Skip to content

Commit bcede76

Browse files
committed
Update releases
because bazel and google can't go ten seconds without breaking something.
1 parent a9aebfe commit bcede76

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

release.sh

+12-6
Original file line numberDiff line numberDiff 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+
1417
for 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
2530
done
31+

0 commit comments

Comments
 (0)