aboutsummaryrefslogtreecommitdiff
path: root/.builds/debian.yml
blob: 2a379ac6d3405a57bd0be3a3ad485d0e458fa414 (plain)
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
41
42
43
44
45
46
47
48
image: debian/stable
packages:
  - asciidoc
  - clang
  - libcmocka-dev
  - libegl1-mesa-dev
  - libfreeimage-dev
  - libglu-dev
  - libicu-dev
  - libpango1.0-dev
  - libpng-dev
  - librsvg2-dev
  - libtiff-dev
  - libturbojpeg-dev
  - libwayland-dev
  - libx11-dev
  - libxcb1-dev
  - libxkbcommon-dev
  - libxkbcommon-x11-dev
  - mesa-common-dev
  - meson
sources:
  - https://git.sr.ht/~exec64/imv
tasks:
  - configure: |
      cd imv
      sed -i -e 's/BACKEND_\(.*\)=no/BACKEND_\1=yes/' config.mk
      # libnsgif isn't packaged by debian
      sed -i -e 's/BACKEND_LIBNSGIF=yes/BACKEND_LIBNSGIF=no/' config.mk
      cat config.mk
  - make_gcc: |
      cd imv
      CC=gcc BUILDDIR=gcc make
      CC=gcc BUILDDIR=gcc make check
  - make_clang: |
      cd imv
      CC=clang BUILDDIR=clang make
      CC=clang BUILDDIR=clang make check
#FIXME:
# the old meson package in debian has a bug and crashes with
# our meson.build; re-enable this once debian packages a version
# newer than 0.49.2
# - meson_gcc: |
#     CC=gcc meson imv build_gcc -D auto_features=enabled -D libnsgif=disabled
#     CC=gcc ninja -C build_gcc test
# - meson_clang: |
#     CC=clang meson imv build_clang -D auto_features=enabled -D libnsgif=disabled
#     CC=clang ninja -C build_clang test