From 3478a9251210e9234897449006c3dbd66e7d9d9c Mon Sep 17 00:00:00 2001 From: Adrian Siekierka Date: Sun, 16 Feb 2025 15:44:18 +0100 Subject: [PATCH] chore: fix GitHub CI --- .github/workflows/build.yml | 1 + meson.build | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c3ccbb9..e7f4752 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,7 @@ jobs: uses: actions/checkout@v3 with: path: psxavenc + fetch-depth: 0 - name: Build psxavenc for Windows run: | diff --git a/meson.build b/meson.build index 5ae53b6..500703d 100644 --- a/meson.build +++ b/meson.build @@ -3,7 +3,7 @@ project('psxavenc', 'c', default_options: ['c_std=c11']) add_project_arguments('-D_POSIX_C_SOURCE=201112L', language : 'c') conf_data = configuration_data() -conf_data.set('VERSION', '"' + run_command('git', 'describe', '--tags', '--match=v*', check: true).stdout().strip() + '"') +conf_data.set('VERSION', '"' + run_command('git', '-C', meson.project_source_root(), 'describe', '--tags', '--always', '--dirty', '--match=v*', check: true).stdout().strip() + '"') configure_file(output: 'config.h', configuration: conf_data) libm_dep = meson.get_compiler('c').find_library('m')