[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2-demos] ci 6886a3c: * .gitlab-ci.yml: Initial introduction of
From: |
Werner Lemberg |
Subject: |
[freetype2-demos] ci 6886a3c: * .gitlab-ci.yml: Initial introduction of CI. |
Date: |
Sat, 2 Jul 2022 22:59:21 -0400 (EDT) |
branch: ci
commit 6886a3c7068078be5285f4f52ef09b226502cd9f
Author: Charlie Jiang <w@chariri.moe>
Commit: Charlie Jiang <w@chariri.moe>
* .gitlab-ci.yml: Initial introduction of CI.
This configuration only supports Meson build on Linux. Windows and macOS
would
be supported in the future. There's no plan to support autotools and CMake
by
now.
The Linux build leverages `ci-templates` project to build the base image for
the build environment.
---
.gitlab-ci.yml | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..7a72648
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,39 @@
+include:
+- project: 'freedesktop/ci-templates'
+ ref: 9dc112a981fb523b7c34f00b386b4e3b2e7da2c6
+ file: '/templates/ubuntu.yml'
+
+stages:
+ - prep
+ - build
+
+variables:
+ FDO_UPSTREAM_REPO: freetype/freetype-demos
+
+.ftdemos.ubuntu:2204:
+ variables:
+ FDO_DISTRIBUTION_VERSION: '22.04'
+ FDO_DISTRIBUTION_TAG: '2022-07-03.0'
+
+build-ubuntu-container:
+ extends:
+ - .fdo.container-build@ubuntu # the CI template
+ - .ftdemos.ubuntu:2204 # our template job above
+ stage: prep
+ variables:
+ # Packages to install on the container
+ FDO_DISTRIBUTION_PACKAGES: "git gcc cmake ninja-build pkg-config
librsvg2-dev python3-pip qtbase5-dev"
+ FDO_DISTRIBUTION_EXEC: |
+ pip3 install meson
+
+
+build linux meson:
+ extends:
+ - .fdo.distribution-image@ubuntu
+ - .ftdemos.ubuntu:2204
+ stage: build
+ script:
+ - meson builddir
+ - ninja -C builddir
+
+# TODO: Windows, macOS
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2-demos] ci 6886a3c: * .gitlab-ci.yml: Initial introduction of CI.,
Werner Lemberg <=