.gitlab-ci.yml 902 Bytes
Newer Older
1 2 3 4
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/base:latest

build:
  script:
Nikolaus Waxweiler's avatar
Nikolaus Waxweiler committed
5
    - dnf install -y libappstream-glib-devel gettext
6 7
    - pip3 install --upgrade pip
    - pip3 install meson ninja -r requirements.txt
8
    - meson build
9
    - ninja -C build install
10 11 12 13 14

    # Make a dist package with prebuilt binaries.
    - python3 scripts/flip-prebuilt-on.py meson_options.txt
    - git add meson_options.txt
    - cp /usr/local/share/fonts/cantarell/*.otf prebuilt
Nikolaus Waxweiler's avatar
Nikolaus Waxweiler committed
15 16
    - cp /usr/local/share/fonts/cantarell/*.ttf prebuilt
    - git add prebuilt/*.otf prebuilt/*.ttf
17 18 19 20
    - git config --global user.email "you@example.com"
    - git config --global user.name "Your Name"
    - git commit -m "Make package with prebuilt binaries, ninja will dist them."
    - ninja -C build dist
21 22
  artifacts:
    paths:
23
      - build/meson-dist
24
      - prebuilt/*.otf
Nikolaus Waxweiler's avatar
Nikolaus Waxweiler committed
25
      - prebuilt/*.ttf
26
    expire_in: 7 days