aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorParthasarathy Tirumalai <parthasarathy.tirumalai@desy.de>2023-05-10 11:02:44 +0200
committerParthasarathy Tirumalai <parthasarathy.tirumalai@desy.de>2023-05-10 11:02:44 +0200
commit10592fc69d58ba4fdb99c0a7af4b957dbba314fe (patch)
tree3c644985e555764ad85d3e79b97d1497f719a9cc /.gitlab-ci.yml
parentd136fd5a943aeadfa36971a3ae800f83fe8b41f0 (diff)
Add CI build job for MacOS.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index edca634c..de20bd92 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -78,3 +78,18 @@ build_container_image_tag:
rules:
- if: $CI_COMMIT_TAG
+
+build-macos:
+ tags:
+ - macOS
+ variables:
+ GIT_STRATEGY: clone
+ script:
+ - brew install gsl hdf5 flex bison argp-standalone pkg-config doxygen gtk+3 cairo pango gdk-pixbuf fftw meson python-tk
+ - export PATH="$(brew --prefix)/opt/bison/bin:$(brew --prefix)/opt/flex/bin:$PATH"
+ - export LDFLAGS="-L$(brew --prefix)/opt/bison/lib -L$(brew --prefix)/opt/flex/lib -L$(brew --prefix)/opt/argp-standalone/lib -largp $LDFLAGS"
+ - export CFLAGS="-I$(brew --prefix)/opt/flex/include -I$(brew --prefix)/opt/argp-standalone/include/ $CFLAGS"
+ - meson build
+ - ninja -C build
+ - ninja -C build test
+