1 Commits

Author SHA1 Message Date
d3e137ff9c Add changelog, uniform naming, prepare v0.2.0 tagging (#18)
All checks were successful
Build ptprnt / build (push) Successful in 3m52s
Reviewed-on: moritz/ptouch-prnt#18
2025-10-16 19:36:15 +00:00
2 changed files with 17 additions and 10 deletions

View File

@@ -38,17 +38,23 @@ jobs:
echo "=== End dependency package version ==="
- name: setup builddir
run: meson setup builddir -Db_coverage=true
- name: build and test dist package
run: ninja -C builddir dist
- name: run unit tests
run: ninja -C builddir test
- name: calculate coverage
run: ninja -C builddir coverage-text
- name: Coverage report
run: cat ./builddir/meson-logs/coverage.txt
- name: build and test dist package
run: ninja -C builddir dist
- name: upload dist package
uses: actions/upload-artifact@v3
with:
name: ptprnt-dist
name: ptprnt
path: ./builddir/meson-dist/*
if-no-files-found: error
- name: upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage.txt
path: ./builddir/meson-logs/coverage.txt
if-no-files-found: error

View File

@@ -1,11 +1,11 @@
project(
'ptprnt',
'cpp',
version: 'v0.1.0-' + run_command(
version: 'v0.2.0-'
+ run_command(
'git',
'rev-parse',
'--short',
'HEAD',
'--short', 'HEAD',
check: true,
).stdout().strip(),
license: 'GPLv3',
@@ -24,7 +24,7 @@ log_dep = dependency('spdlog')
fmt_dep = dependency('fmt')
pangocairo_dep = dependency('pangocairo')
# CLI11
# CLI11
cli11_proj = subproject('cli11')
cli11_dep = cli11_proj.get_variable('CLI11_dep')
if not cli11_dep.found()
@@ -41,7 +41,9 @@ cpp_args = ['-DPROJ_VERSION="' + meson.project_version() + '"']
# USB trace mode option (for debugging without sending to hardware)
if get_option('usb_trace_only')
cpp_args += ['-DUSB_TRACE_ONLY']
message('USB_TRACE_ONLY enabled: USB data will be logged but not sent to device')
message(
'USB_TRACE_ONLY enabled: USB data will be logged but not sent to device',
)
endif
ptprnt_exe = executable(
@@ -54,7 +56,6 @@ ptprnt_exe = executable(
cpp_args: cpp_args,
)
### Unit tests
# GTest and GMock
@@ -65,4 +66,4 @@ if not gtest_dep.found()
error('MESON_SKIP_TEST: gtest not installed.')
endif
subdir('tests')
subdir('tests')