File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,21 @@ builds=(
11
11
" freebsd_amd64"
12
12
" darwin_amd64" )
13
13
14
+ releases=" release/$( git describe --tags) "
15
+ mkdir -p ${releases}
16
+
14
17
for arch in " ${builds[@]} " ; do
15
18
echo build for $arch
16
19
echo ===========================================================================
17
- bazel build --platforms=@io_bazel_rules_go//go/toolchain:$arch //:git-sync
18
- done
19
20
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
22
26
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
25
30
done
31
+
You can’t perform that action at this time.
0 commit comments