~hp/lv2lint

f99be0b69f450d57db5ddf45201718d2fbbb2f00 — Hanspeter Portner 10 months ago e678807
Update CI recipe
3 files changed, 34 insertions(+), 8 deletions(-)

R .build.yml => .builds/alpine-latest.yml
M meson.build
M meson_options.txt
R .build.yml => .builds/alpine-latest.yml +32 -5
@@ 1,23 1,50 @@
# SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
# SPDX-License-Identifier: CC0-1.0

---

image: alpine/latest

packages:
  - reuse
  - meson
  - musl-dev
  - lv2-dev
  - lilv-dev
  - curl-dev
  - elfutils-dev
  - libx11-dev
  - linux-headers

environment:
  project: lv2lint

tasks:
  - setup: |
      cd lv2lint
      meson setup build -Delf-tests=enabled -Donline-tests=enabled -Dx11-tests=enabled
      cd "${project}"
      meson setup build \
        -Dbuildtype=release \
        -Dprefer_static=true \
        -Dprefix="/tmp/${project}" \
        -Delf-tests=enabled \
        -Donline-tests=enabled \
        -Dx11-tests=enabled
  - build: |
      cd lv2lint
      ninja -C build
      cd "${project}"
      ninja -C build install
  - test: |
      cd lv2lint
      cd "${project}"
      ninja -C build test
  - pack: |
      cd /tmp
      tar -czf artifacts.tar.gz "${project}"

artifacts:
  - /tmp/artifacts.tar.gz

triggers:
  - action: email
    condition: failure
    to: "<dev@open-music-kontrollers.ch>"

...

M meson.build => meson.build +1 -2
@@ 45,8 45,7 @@ m_dep = cc.find_library('m')
rt_dep = cc.find_library('rt')
dl_dep = cc.find_library('dl')
lv2_dep = dependency('lv2', version : '>=1.18.0')
lilv_dep = dependency('lilv-0', version : '>=0.24.0',
	static : meson.is_cross_build() and false) #FIXME
lilv_dep = dependency('lilv-0', version : '>=0.24.0')
curl_dep = dependency('libcurl', required: online_tests)
elf_dep = dependency('libelf', required: elf_tests)
x11_dep = dependency('x11', version : '>=1.6.0', required : x11_tests)

M meson_options.txt => meson_options.txt +1 -1
@@ 4,4 4,4 @@
option('online-tests', type : 'feature', value : 'disabled')
option('elf-tests', type : 'feature', value : 'disabled')
option('x11-tests', type : 'feature', value : 'disabled')
option('version', type : 'string', value : '0.17.77')
option('version', type : 'string', value : '0.17.81')