summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml-ignored
blob: 3bb72ab9f80f94b0fd60c811809405e40ddc9b7a (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
cache:
  paths:
    - _pacman_cache

.build:
  stage: build
  image: archlinux:latest
  variables:
    PACMAN_CACHE: $CI_PROJECT_DIR/_pacman_cache
  artifacts:
    when: always
    paths:
      - _build/meson-logs
  before_script:
    - pacman -Syu --noconfirm --needed --cachedir $PACMAN_CACHE --ignore glibc
        base-devel
        git
        gobject-introspection
        meson
        vala
        pacman-contrib
        ${EXTRA_PKGS}
  script:
    - meson _build
        -D enable-f16c=true
        -D enable-mmx=true
        -D enable-sse=true
        -D enable-sse2=true
        -D enable-sse4_1=true
        -D with-docs=true
        ${EXTRA_OPTIONS}
    - ninja -C _build
    - ninja -C _build test
  after_script:
    # Remove all cached packages but the latest version
    #- paccache -r -k1 --cachedir $PACMAN_CACHE

latest-lcms:
  extends: .build
  variables:
    EXTRA_OPTIONS : "-Dwith-lcms=true"
    EXTRA_PKGS: "lcms2"

latest-nolcms:
  extends: .build
  variables:
    EXTRA_OPTIONS : "-Dwith-lcms=false"
    EXTRA_PKGS: ""