~motiejus/bazel-zig-cc

ref: ea14601308340df78dd1d508caa322f174fd4582 bazel-zig-cc/.build.yml -rw-r--r-- 1.6 KiB
ea146013 — Motiejus Jakštys fix workspace name #2 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
image: debian/testing
packages:
  - curl
  - file
sources:
  - https://git.sr.ht/~motiejus/bazel-zig-cc
environment:
  CC: /usr/bin/false
tasks:
  - setup: |
      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_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) | \
        tee /dev/stderr | grep -q "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) | \
        tee /dev/stderr | grep -q "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) | \
        tee /dev/stderr | grep -q "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) | \
        tee /dev/stderr | grep -q "statically linked"
  #- test_macos-gnu: |
  #    cd bazel-zig-cc; ../bazel build --toolchain_resolution_debug=true \
  #      --platforms @zig_sdk//:x86_64-macos-gnu \
  #      //test:gognu