2021-11-22 17:25:02 +02:00
|
|
|
image: debian/stable
|
2021-06-08 06:30:06 +03:00
|
|
|
packages:
|
2021-09-07 10:50:16 +03:00
|
|
|
- direnv
|
2021-10-18 15:15:50 +03:00
|
|
|
- shellcheck
|
2022-02-04 10:09:32 +02:00
|
|
|
- qemu-user-static
|
|
|
|
- libc6-arm64-cross
|
2022-02-05 05:58:24 +02:00
|
|
|
- binfmt-support
|
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-10-18 15:15:50 +03:00
|
|
|
triggers:
|
|
|
|
- action: email
|
|
|
|
condition: failure
|
|
|
|
to: motiejus+srht@jakstys.lt
|
2021-06-08 06:30:06 +03:00
|
|
|
tasks:
|
|
|
|
- setup: |
|
2021-06-19 12:14:19 +03:00
|
|
|
sudo apt-get purge gcc -y && sudo apt-get autoremove -y
|
2022-02-04 10:09:32 +02:00
|
|
|
- test_list_toolchains_platforms: |
|
|
|
|
cd bazel-zig-cc; . .envrc
|
|
|
|
echo "Available toolchains:"
|
2022-04-07 12:56:32 +03:00
|
|
|
bazel query @zig_sdk//toolchain:*
|
2022-02-04 10:09:32 +02:00
|
|
|
echo "Available platforms:"
|
2022-04-07 12:56:32 +03:00
|
|
|
bazel query @zig_sdk//platform:*
|
2022-02-04 10:09:32 +02:00
|
|
|
- test_hello_on_toolchains: |
|
|
|
|
cd bazel-zig-cc
|
|
|
|
./ci/test --color=yes --curses=yes
|
2021-10-18 15:18:29 +03:00
|
|
|
- lint: |
|
2021-11-05 20:27:28 +02:00
|
|
|
cd bazel-zig-cc; . .envrc
|
2021-10-18 15:15:02 +03:00
|
|
|
shellcheck -x $(awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(git ls-files))
|
2021-11-05 20:22:06 +02:00
|
|
|
bazel run //:buildifier
|
|
|
|
git diff --exit-code
|