chore: fix GitHub CI

This commit is contained in:
Adrian Siekierka 2025-02-16 15:44:18 +01:00
parent 8712e4e9fd
commit 3478a92512
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ jobs:
uses: actions/checkout@v3
with:
path: psxavenc
fetch-depth: 0
- name: Build psxavenc for Windows
run: |

View File

@ -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')