2021-06-08 06:30:06 +03:00
|
|
|
image: debian/testing
|
|
|
|
packages:
|
|
|
|
- curl
|
|
|
|
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
|
2021-06-08 06:56:37 +03:00
|
|
|
- test_default: |
|
2021-06-10 07:27:01 +03:00
|
|
|
cd bazel-zig-cc; ../bazel run \
|
2021-06-08 06:56:37 +03:00
|
|
|
//test:gognu
|
2021-06-08 07:01:34 +03:00
|
|
|
- test_linux-gnu: |
|
2021-06-10 07:27:01 +03:00
|
|
|
cd bazel-zig-cc; ../bazel run \
|
2021-06-08 07:01:34 +03:00
|
|
|
--platforms @com_github_ziglang_zig//:platform_x86_64-linux-gnu \
|
2021-06-08 06:56:37 +03:00
|
|
|
//test:gognu
|
2021-06-08 07:01:34 +03:00
|
|
|
- test_linux-musl: |
|
2021-06-10 07:27:01 +03:00
|
|
|
cd bazel-zig-cc; ../bazel run \
|
2021-06-08 07:01:34 +03:00
|
|
|
--platforms @com_github_ziglang_zig//:platform_x86_64-linux-musl \
|
|
|
|
//test:gomusl
|
|
|
|
#- test_macos-gnu: |
|
|
|
|
# cd bazel-zig-cc; ../bazel build --toolchain_resolution_debug=true \
|
|
|
|
# --platforms @com_github_ziglang_zig//:platform_x86_64-macos-gnu \
|
|
|
|
# //test:gognu
|