Fix CI if no tags are present on repo

This commit is contained in:
Patrick Nicolas
2024-12-01 20:27:24 +01:00
parent 535ead4503
commit 003eee8e2f
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ cd $(dirname $0)
GIT_TAG=$(git describe --exact-match --tags 2>/dev/null || true)
GIT_SHA=$(git rev-parse HEAD)
GIT_COMMIT=$(git describe --exact-match --tags 2>/dev/null || git rev-parse HEAD)
GIT_DESC=$(git describe --tags)
GIT_DESC=$(git describe --tags --always)
MONADO_COMMIT=$(grep -zo "FetchContent_Declare(monado[^)]*)" ../CMakeLists.txt | sed -ze "s/^.*GIT_TAG *\([^ )]*\).*$/\1/" | tr -d '\0')
BOOSTPFR_URL=$(grep -zo "FetchContent_Declare(boostpfr[^)]*)" ../CMakeLists.txt | sed -ze "s/^.*URL *\([^ )]*\).*$/\1/" | tr -d '\0')