~hp/notes.lv2

b156e4499f8d11e12c86d7fab7525ff875a1860e — Hanspeter Portner 7 months ago 76403d0
ci: update to alpine 3.18, add sign step
3 files changed, 56 insertions(+), 20 deletions(-)

M .builds/alpine-latest.yml
M meson.build
M meson_options.txt
M .builds/alpine-latest.yml => .builds/alpine-latest.yml +52 -18
@@ 6,35 6,69 @@
image: alpine/latest

packages:
  - clang16-analyzer
  - llvm16
  - reuse
  - meson
  - hut
  - jq
  - valgrind
  - lv2-dev
  - glu-dev
  - libvterm-dev
  - glew-dev
  - glu-dev
  - libx11-dev
  - libxext-dev
  - cairo-dev

environment:
  project: notes.lv2

secrets:
  - 0545580c-42ac-4700-b322-4e9df924eb07 # runner-ssh
  - 5fe806cd-3af4-4588-9898-8115d9262144 # hut-config
  - d6d10b2a-542a-4b45-b1be-6ef30a8ab558 # git-config
  - 3de1773e-3503-46f5-8ab4-5212026517f4 # pgp-key

sources:
  - https://git.open-music-kontrollers.ch/~hp/ci

tasks:
  - setup: |
      cd "${project}"
      meson setup build \
        -Dbuildtype=release \
        -Dprefix="/tmp" \
        -Dlv2libdir="" \
  - gcc: |
      . ~/ci/activate

      ci-meson gcc setup \
        -Duse-fontconfig=disabled
  - build: |
      cd "${project}"
      ninja -C build install
  - test: |
      cd "${project}"
      ninja -C build test
  - pack: |
      cd /tmp
      tar -czf artifacts.tar.gz "${project}"

artifacts:
  - /tmp/artifacts.tar.gz
      ci-meson gcc build
      ci-meson gcc test
      ci-meson gcc memcheck

  - clang: |
      . ~/ci/activate

      ci-meson clang setup \
        -Duse-fontconfig=disabled
      ci-meson clang build
      ci-meson clang test
      ci-meson clang memcheck

      #  - analyzer: |
      #      . ~/ci/activate
      #
      #      ci-meson analyzer setup \
      #        -Duse-fontconfig=disabled
      #      ci-meson analyzer build
      #      ci-meson analyzer test

  - sign: |
      . ~/ci/activate

      if ! ci-istag; then
        complete-build
      fi

      ci-archivesign

triggers:
  - action: email

M meson.build => meson.build +3 -1
@@ 62,7 62,9 @@ dsp_srcs = [join_paths('src', 'notes.c')]

ui_srcs = [join_paths('src', 'notes_ui.c')]

c_args = ['-fvisibility=hidden']
c_args = [
	'-fvisibility=hidden',
	'-Wno-unknown-warning-option']

version = get_option('version').split('.')
add_project_arguments('-DNOTES_VERSION="'

M meson_options.txt => meson_options.txt +1 -1
@@ 27,4 27,4 @@ option('lv2libdir',
	type : 'string',
	value : 'lib/lv2')

option('version', type : 'string', value : '0.5.41')
option('version', type : 'string', value : '0.5.65')