1

use @io_bazel_rules_go//go/toolchain where possible

only musl adds extra-toolchains.
This commit is contained in:
Motiejus Jakštys 2021-06-20 13:48:39 +03:00 committed by Motiejus Jakštys
parent 29e2317de3
commit 94eb081d6d

View File

@ -18,7 +18,7 @@ tasks:
grep -q "ELF 64-bit.* x86-64.* dynamically linked" grep -q "ELF 64-bit.* x86-64.* dynamically linked"
- test_x86_64-linux-gnu: | - test_x86_64-linux-gnu: |
cd bazel-zig-cc; ./build-and-file \ cd bazel-zig-cc; ./build-and-file \
--platforms @zig_sdk//:x86_64-linux-gnu //test:hello | \ --platforms @io_bazel_rules_go//go/toolchain:linux_amd64_cgo //test:hello | \
grep -q "ELF 64-bit.* x86-64.* dynamically linked" grep -q "ELF 64-bit.* x86-64.* dynamically linked"
- test_x86_64-linux-musl: | - test_x86_64-linux-musl: |
cd bazel-zig-cc; ./build-and-file \ cd bazel-zig-cc; ./build-and-file \
@ -26,7 +26,7 @@ tasks:
grep -q "ELF 64-bit.* x86-64.* statically linked" grep -q "ELF 64-bit.* x86-64.* statically linked"
- test_aarch64-linux-gnu: | - test_aarch64-linux-gnu: |
cd bazel-zig-cc; ./build-and-file \ cd bazel-zig-cc; ./build-and-file \
--platforms @zig_sdk//:aarch64-linux-gnu //test:hello | \ --platforms @io_bazel_rules_go//go/toolchain:linux_arm64_cgo //test:hello | \
grep -q "ELF 64-bit.* ARM aarch64.* dynamically linked" grep -q "ELF 64-bit.* ARM aarch64.* dynamically linked"
- test_aarch64-linux-musl: | - test_aarch64-linux-musl: |
cd bazel-zig-cc; ./build-and-file \ cd bazel-zig-cc; ./build-and-file \
@ -34,9 +34,9 @@ tasks:
grep -q "ELF 64-bit.* ARM aarch64.* statically linked" grep -q "ELF 64-bit.* ARM aarch64.* statically linked"
- test_x86_64-macos-gnu: | - test_x86_64-macos-gnu: |
cd bazel-zig-cc; ./build-and-file \ cd bazel-zig-cc; ./build-and-file \
--platforms @zig_sdk//:x86_64-macos-gnu //test:hello | \ --platforms @io_bazel_rules_go//go/toolchain:darwin_amd64_cgo //test:hello | \
grep -q "Mach-O 64-bit x86_64 executable" grep -q "Mach-O 64-bit x86_64 executable"
- test_aarch64-macos-gnu: | - test_aarch64-macos-gnu: |
cd bazel-zig-cc; ./build-and-file \ cd bazel-zig-cc; ./build-and-file \
--platforms @zig_sdk//:aarch64-macos-gnu //test:hello | \ --platforms @io_bazel_rules_go//go/toolchain:darwin_arm64_cgo //test:hello | \
grep -q "Mach-O 64-bit arm64 executable" grep -q "Mach-O 64-bit arm64 executable"