[gnome-epub-thumbnailer] ci: Add a CI configuration for building with Meson



commit 226a6c19c3ad77e3bdc9f73e02dd946d91baa951
Author: Çağatay Yiğit Şahin <cyigitsahin outlook com>
Date:   Thu Sep 29 02:35:52 2022 +0200

    ci: Add a CI configuration for building with Meson

 .gitlab-ci.yml | 29 +++++++++++++++++++++++++----
 1 file changed, 25 insertions(+), 4 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c079d64..e5a9332 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,9 +1,6 @@
-stages:
-- test
+image: fedora:latest
 
 build-fedora:
-  image: fedora:latest
-  stage: test
   before_script:
     - dnf install -y gcc redhat-rpm-config which make automake autoconf libarchive-devel libxml2-devel 
gdk-pixbuf2-devel glib2-devel
   script:
@@ -11,3 +8,27 @@ build-fedora:
     - make
     - make install
 
+build-fedora-meson:
+  variables:
+    DEPENDENCIES: gcc
+                  meson
+                  libarchive-devel
+                  libxml2-devel
+                  gdk-pixbuf2-devel
+                  glib2-devel
+                  git-core
+
+  before_script:
+    - dnf update -y && dnf install -y $DEPENDENCIES
+  script:
+    - meson _build
+    - ninja -v -C _build
+    - ninja -v -C _build install
+    - ninja -v -C _build uninstall
+    - ninja -v -C _build dist
+  artifacts:
+      when: always
+      name: "gnome-epub-thumbnailer-${CI_COMMIT_REF_NAME}"
+      paths:
+        - "${CI_PROJECT_DIR}/_build/meson-logs"
+        - "${CI_PROJECT_DIR}/_build/meson-dist"
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]