~hp/moony.lv2

2d119799ffc45d3bb558e4902a35de11fef24eb4 — builds.sr.ht 11 months ago 6146ed2
Squashed 'subprojects/canvas.lv2/' changes from c11a639..9501001

9501001 release-0.2.0
68f61d9 Add ci recipe, fix static analyzer warnings

git-subtree-dir: subprojects/canvas.lv2
git-subtree-split: 95010017d93a961b43f596f1196810d60709cc86
3 files changed, 84 insertions(+), 7 deletions(-)

A .builds/alpine-latest.yml
M meson_options.txt
M test/canvas.c
A .builds/alpine-latest.yml => .builds/alpine-latest.yml +69 -0
@@ 0,0 1,69 @@
# SPDX-FileCopyrightText: Hanspeter Portner <dev@open-music-kontrollers.ch>
# SPDX-License-Identifier: CC0-1.0

---

image: alpine/latest

packages:
  - clang15-analyzer
  - llvm15
  - reuse
  - meson
  - git-subtree
  - hut
  - jq
  - valgrind

  - lv2-dev
  - cairo-dev

environment:
  project: canvas.lv2

secrets:
  - 0545580c-42ac-4700-b322-4e9df924eb07 # runner-ssh
  - 5fe806cd-3af4-4588-9898-8115d9262144 # hut-config
  - d6d10b2a-542a-4b45-b1be-6ef30a8ab558 # git-config

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

tasks:
  - gcc: |
      . ~/ci/activate

      ci-meson gcc setup
      ci-meson gcc build
      ci-meson gcc test
      ci-meson gcc memcheck

  - clang: |
      . ~/ci/activate

      ci-meson clang setup
      ci-meson clang build
      ci-meson clang test
      ci-meson clang memcheck

  - analyzer: |
      . ~/ci/activate

      ci-meson analyzer setup
      ci-meson analyzer build
      ci-meson analyzer test

  - deploy: |
      . ~/ci/activate

      if ! ci-isrelease; then
        complete-build
      fi

      ci-subtreemerge

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

M meson_options.txt => meson_options.txt +1 -1
@@ 6,4 6,4 @@ option('build-tests',
	value : true,
	yield : true)

option('version', type : 'string', value : '0.1.79')
option('version', type : 'string', value : '0.2.0')

M test/canvas.c => test/canvas.c +14 -6
@@ 69,7 69,9 @@ _map_free(handle_t *handle)
static void
test_canvas_urid_init(handle_t *handle)
{
	static LV2_Canvas_URID urid;
	LV2_Canvas_URID urid;

	memset(&urid, 0x0, sizeof(urid));

	LV2_URID_Map *map = &handle->map;



@@ 80,10 82,12 @@ test_canvas_urid_init(handle_t *handle)
	assert(lv2_canvas_urid_init(&urid, map) == 0);
}

void
static void
test_canvas_forge(handle_t *handle)
{
	static LV2_Canvas_URID urid;
	LV2_Canvas_URID urid;

	memset(&urid, 0x0, sizeof(urid));

	const float vec [3] = {
		1.f, 2.f, 3.f


@@ 177,9 181,13 @@ test_canvas_forge(handle_t *handle)
static void
test_canvas_idisp(handle_t *handle)
{
	static LV2_Canvas_URID urid;
	static LV2_Canvas_Idisp idisp;
	static LV2_Inline_Display queue_draw;
	LV2_Canvas_URID urid;
	LV2_Canvas_Idisp idisp;
	LV2_Inline_Display queue_draw;

	memset(&urid, 0x0, sizeof(urid));
	memset(&idisp, 0x0, sizeof(idisp));
	memset(&queue_draw, 0x0, sizeof(queue_draw));

	LV2_URID_Map *map = &handle->map;
	uint8_t buf [1024];