summaryrefslogtreecommitdiff
path: root/.builds/debian-stable-amd64.yml
blob: 03ec7d913d223b36561e3e32cdec3ffccd16a2c7 (plain) (blame)
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
image: debian/stable
arch: amd64
packages:
  - curl
  - jq
  - libsqlite3-dev
sources:
  - https://github.com/vrischmann/zig-sqlite
secrets:
  - ce266aec-9be4-4136-b53e-dc12a62a399b

tasks:
  - install_zig: |
      curl -L -s "https://ziglang.org/download/index.json" | jq '.master["x86_64-linux"].tarball' -r >> ~/zig_master_url
      curl -J -o ~/zig.tar.xz $(cat ~/zig_master_url)
      tar xJf ~/zig.tar.xz
      mv ~/zig-linux-* ~/zig-master
      echo "export PATH=$PATH:~/zig-master" >> ~/.buildenv

  - test_in_memory: |
      cd zig-sqlite
      TERM=dumb zig build test -Din_memory=true

  - test_filesystem: |
      cd zig-sqlite
      TERM=dumb zig build test -Din_memory=false

  # TODO(vincent): This fails with Debian for some reason
  #
  # - test_with_bundled_library: |
  #     cd zig-sqlite
  #     TERM=dumb zig build test -Din_memory -Duse_bundled