register only gnu toolchain by default
musl can be specified with --extra_toolchains.
This commit is contained in:
30
.build.yml
30
.build.yml
@@ -12,36 +12,36 @@ tasks:
|
||||
curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.9.0/bazelisk-linux-amd64 \
|
||||
-o bazel
|
||||
chmod +x bazel
|
||||
#- test_default: |
|
||||
# cd bazel-zig-cc; ../bazel run \
|
||||
# //test:gognu
|
||||
- test_default: |
|
||||
cd bazel-zig-cc; ../bazel run \
|
||||
//test:hello
|
||||
- test_x86_64-linux-gnu: |
|
||||
cd bazel-zig-cc; ../bazel run \
|
||||
--platforms @zig_sdk//:x86_64-linux-gnu //test:gognu
|
||||
file $(./getpath @zig_sdk//:x86_64-linux-gnu //test:gognu) | \
|
||||
--platforms @zig_sdk//:x86_64-linux-gnu //test:hello
|
||||
file $(./getpath @zig_sdk//:x86_64-linux-gnu //test:hello) | \
|
||||
tee /dev/stderr | grep -q "ELF 64-bit.* x86-64.* dynamically linked"
|
||||
- test_x86_64-linux-musl: |
|
||||
cd bazel-zig-cc; ../bazel run \
|
||||
--platforms @zig_sdk//:x86_64-linux-musl //test:gomusl
|
||||
file $(./getpath @zig_sdk//:x86_64-linux-musl //test:gomusl) | \
|
||||
--platforms @zig_sdk//:x86_64-linux-musl //test:hello
|
||||
file $(./getpath @zig_sdk//:x86_64-linux-musl //test:hello) | \
|
||||
tee /dev/stderr | grep -q "ELF 64-bit.* x86-64.* statically linked"
|
||||
- test_aarch64-linux-gnu: |
|
||||
cd bazel-zig-cc; ../bazel build \
|
||||
--platforms @zig_sdk//:aarch64-linux-gnu //test:gognu
|
||||
file $(./getpath @zig_sdk//:aarch64-linux-gnu //test:gognu) | \
|
||||
--platforms @zig_sdk//:aarch64-linux-gnu //test:hello
|
||||
file $(./getpath @zig_sdk//:aarch64-linux-gnu //test:hello) | \
|
||||
tee /dev/stderr | grep -q "ELF 64-bit.* ARM aarch64.* dynamically linked"
|
||||
- test_aarch64-linux-musl: |
|
||||
cd bazel-zig-cc; ../bazel build \
|
||||
--platforms @zig_sdk//:aarch64-linux-musl //test:gomusl
|
||||
file $(./getpath @zig_sdk//:aarch64-linux-musl //test:gomusl) | \
|
||||
--platforms @zig_sdk//:aarch64-linux-musl //test:hello
|
||||
file $(./getpath @zig_sdk//:aarch64-linux-musl //test:hello) | \
|
||||
tee /dev/stderr | grep -q "ELF 64-bit.* ARM aarch64.* statically linked"
|
||||
- test_x86_64-macos-gnu: |
|
||||
cd bazel-zig-cc; ../bazel build \
|
||||
--platforms @zig_sdk//:x86_64-macos-gnu //test:gognu
|
||||
file $(./getpath @zig_sdk//:x86_64-macos-gnu //test:gognu) | \
|
||||
--platforms @zig_sdk//:x86_64-macos-gnu //test:hello
|
||||
file $(./getpath @zig_sdk//:x86_64-macos-gnu //test:hello) | \
|
||||
tee /dev/stderr | grep -q "Mach-O 64-bit x86_64 executable"
|
||||
- test_aarch64-macos-gnu: |
|
||||
cd bazel-zig-cc; ../bazel build \
|
||||
--platforms @zig_sdk//:aarch64-macos-gnu //test:gognu
|
||||
file $(./getpath @zig_sdk//:aarch64-macos-gnu //test:gognu) | \
|
||||
--platforms @zig_sdk//:aarch64-macos-gnu //test:hello
|
||||
file $(./getpath @zig_sdk//:aarch64-macos-gnu //test:hello) | \
|
||||
tee /dev/stderr | grep -q "Mach-O 64-bit arm64 executable"
|
||||
|
||||
Reference in New Issue
Block a user