[tracker/wip/carlosg/ci-playground] ci: Add macos build task
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/ci-playground] ci: Add macos build task
- Date: Sun, 16 May 2021 15:17:18 +0000 (UTC)
commit 01f7b376ccea6bb3f0705e5910502c8189f77bcc
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun May 16 16:57:40 2021 +0200
ci: Add macos build task
.gitlab-ci.yml | 18 ++++++++++++++++++
meson.build | 10 +++++++++-
subprojects/vala.wrap | 5 +++++
3 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 09243009f..4bfb69285 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -208,6 +208,24 @@ build-alpine-edge@x86_64:
- build-alpine-container@x86_64
<<: *build
+build-macos:
+ stage: build
+ tags:
+ - macos
+ needs: []
+ before_script:
+ - pip3 install --user meson==0.56
+ - pip3 install --user ninja
+ - export PATH=/Users/gitlabrunner/Library/Python/3.7/bin:$PATH
+ - export MESON_FORCE_BACKTRACE=1
+ script:
+ - meson _build
+ - ninja -C _build
+ artifacts:
+ when: always
+ paths:
+ - _build/meson-logs
+
.test-template: &test
stage: test
variables:
diff --git a/meson.build b/meson.build
index 44e8fbbfc..4fc92eb71 100644
--- a/meson.build
+++ b/meson.build
@@ -1,10 +1,18 @@
-project('tracker', 'c', 'vala',
+project('tracker', 'c',
version: '3.2.0-alpha',
meson_version: '>=0.51',
default_options: [
'c_std=c99',
'warning_level=3'])
+vapigen = dependency('vapigen', required:false)
+
+if not vapigen.found()
+ subproject('vala')
+endif
+
+add_languages('vala')
+
gnome = import('gnome')
i18n = import('i18n')
pkg = import('pkgconfig')
diff --git a/subprojects/vala.wrap b/subprojects/vala.wrap
new file mode 100644
index 000000000..c81346240
--- /dev/null
+++ b/subprojects/vala.wrap
@@ -0,0 +1,5 @@
+[wrap-git]
+directory=vala
+url=https://gitlab.gnome.org/GNOME/vala
+revision=master
+depth=1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]