1
hermetic_cc_toolchain/.build.yml

47 lines
2.0 KiB
YAML
Raw Normal View History

2021-06-08 06:30:06 +03:00
image: debian/testing
packages:
- curl
2021-06-10 18:51:59 +03:00
- file
2021-06-08 06:30:06 +03:00
sources:
- https://git.sr.ht/~motiejus/bazel-zig-cc
environment:
2021-06-08 06:33:06 +03:00
CC: /usr/bin/false
2021-06-08 06:30:06 +03:00
tasks:
- setup: |
curl -L https://github.com/bazelbuild/bazelisk/releases/download/v1.9.0/bazelisk-linux-amd64 \
2021-06-08 06:34:21 +03:00
-o bazel
chmod +x bazel
#- test_default: |
# cd bazel-zig-cc; ../bazel run \
# //test:gognu
2021-06-10 16:09:50 +03:00
- test_x86_64-linux-gnu: |
2021-06-10 07:27:01 +03:00
cd bazel-zig-cc; ../bazel run \
2021-06-10 18:53:44 +03:00
--platforms @zig_sdk//:x86_64-linux-gnu //test:gognu
2021-06-10 21:07:31 +03:00
file $(./getpath @zig_sdk//:x86_64-linux-gnu //test:gognu) | \
2021-06-16 14:54:52 +03:00
tee /dev/stderr | grep -q "ELF 64-bit.* x86-64.* dynamically linked"
2021-06-10 16:09:50 +03:00
- test_x86_64-linux-musl: |
2021-06-10 07:27:01 +03:00
cd bazel-zig-cc; ../bazel run \
2021-06-10 18:53:44 +03:00
--platforms @zig_sdk//:x86_64-linux-musl //test:gomusl
2021-06-10 21:07:31 +03:00
file $(./getpath @zig_sdk//:x86_64-linux-musl //test:gomusl) | \
2021-06-16 14:54:52 +03:00
tee /dev/stderr | grep -q "ELF 64-bit.* x86-64.* statically linked"
2021-06-10 16:09:50 +03:00
- test_aarch64-linux-gnu: |
cd bazel-zig-cc; ../bazel build \
2021-06-10 18:53:44 +03:00
--platforms @zig_sdk//:aarch64-linux-gnu //test:gognu
2021-06-10 21:07:31 +03:00
file $(./getpath @zig_sdk//:aarch64-linux-gnu //test:gognu) | \
2021-06-16 14:54:52 +03:00
tee /dev/stderr | grep -q "ELF 64-bit.* ARM aarch64.* dynamically linked"
2021-06-10 16:09:50 +03:00
- test_aarch64-linux-musl: |
cd bazel-zig-cc; ../bazel build \
2021-06-10 18:53:44 +03:00
--platforms @zig_sdk//:aarch64-linux-musl //test:gomusl
2021-06-10 21:07:31 +03:00
file $(./getpath @zig_sdk//:aarch64-linux-musl //test:gomusl) | \
2021-06-16 14:54:52 +03:00
tee /dev/stderr | grep -q "ELF 64-bit.* ARM aarch64.* statically linked"
2021-06-16 12:44:16 +03:00
- test_x86_64-macos-gnu: |
cd bazel-zig-cc; ../bazel build -s \
2021-06-16 14:44:57 +03:00
--platforms @zig_sdk//:x86_64-macos-gnu //test:gognu
file $(./getpath @zig_sdk//:x86_64-macos-gnu //test:gognu) | \
tee /dev/stderr | grep -q "Mach-O 64-bit x86_64 executable"
2021-06-16 12:44:16 +03:00
- test_aarch64-macos-gnu: |
cd bazel-zig-cc; ../bazel build -s \
2021-06-16 14:44:57 +03:00
--platforms @zig_sdk//:aarch64-macos-gnu //test:gognu
file $(./getpath @zig_sdk//:aarch64-macos-gnu //test:gognu) | \
tee /dev/stderr | grep -q "Mach-O 64-bit arm64 executable"