From 1f324818703cf94084bcb807a1d88a4c5a584cd5 Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Fri, 3 Nov 2023 10:47:16 +0100 Subject: [PATCH] ci: update to alpinpe 3.18, add sign step --- .builds/alpine-latest.yml | 63 ++++++++++++++++++++++++++++----------- meson.build | 6 ++++ meson_options.txt | 2 +- 3 files changed, 53 insertions(+), 18 deletions(-) diff --git a/.builds/alpine-latest.yml b/.builds/alpine-latest.yml index 84f70b4..258a6b0 100644 --- a/.builds/alpine-latest.yml +++ b/.builds/alpine-latest.yml @@ -6,8 +6,14 @@ image: alpine/latest packages: + - clang16-analyzer + - llvm16 - reuse - meson + - hut + - jq + - valgrind + - lv2-dev - libftdi1-dev - eudev-dev @@ -15,24 +21,47 @@ packages: environment: project: osc2ftdidmx +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/${project}" - - 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 + - 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 + + - sign: | + . ~/ci/activate + + if ! ci-istag; then + complete-build + fi + + ci-archivesign triggers: - action: email diff --git a/meson.build b/meson.build index 4e7a9b6..d8d1513 100644 --- a/meson.build +++ b/meson.build @@ -39,8 +39,13 @@ srcs = [ join_paths('src', 'main.c') ] +c_args = [ + '-Wno-unused-function', + '-Wno-unknown-warning-option'] + executable('osc2ftdidmx', srcs, include_directories : incs, + c_args : c_args, dependencies : deps, install : true) @@ -59,6 +64,7 @@ if build_tests test_osc2ftdidmx = executable('test_osc2ftdidmx', test_srcs, include_directories : incs, + c_args : c_args, dependencies : deps, install : false) diff --git a/meson_options.txt b/meson_options.txt index 7c8949b..f97335f 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -5,4 +5,4 @@ option('build-tests', type : 'boolean', value : true) -option('version', type : 'string', value : '0.5.35') +option('version', type : 'string', value : '0.5.47') -- 2.45.2