managed to load VERSION file in yaml file - simplifies things

This commit is contained in:
mazzol_a
2025-04-23 14:26:26 +02:00
parent fca31cc432
commit 497c3abfc2
6 changed files with 12 additions and 49 deletions

View File

@ -1,10 +1,11 @@
source:
path: ../..
{% set version = load_file_regex(load_file = 'VERSION', regex_pattern = '(\d+\.\d+\.\d+)').group(1) %}
package:
name: slsdet
version: {{ environ.get('VERSION') }} #2025.3.19
source:
path: ../..
version: {{ version }} #
build:
number: 0
@ -18,7 +19,6 @@ requirements:
- {{ stdlib("c") }}
- {{ compiler('cxx') }}
host:
- cmake
- ninja