Skip to content

Commit 5400c5f

Browse files
Updating TODO.md. v0.3.1 release
1 parent 0cd7bc4 commit 5400c5f

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ endif()
2222
# =========================================================================
2323

2424
function(get_version_from_git OUTPUT_VARIABLE)
25+
execute_process(
26+
COMMAND git tag -d nightly
27+
OUTPUT_STRIP_TRAILING_WHITESPACE
28+
ERROR_QUIET
29+
)
30+
2531
# Get the latest tag
2632
execute_process(
2733
COMMAND git describe --tags --abbrev=0
@@ -55,7 +61,8 @@ function(get_version_from_git OUTPUT_VARIABLE)
5561
endif()
5662
else()
5763
# No tags found, use v0.0.0 with commit hash
58-
set(VERSION "v0.0.0-${GIT_COMMIT_HASH}")
64+
# set(VERSION "v0.0.0-${GIT_COMMIT_HASH}")
65+
message(FATAL_ERROR "Failed to get tag: ${GIT_TAG}")
5966
endif()
6067

6168
set(${OUTPUT_VARIABLE} ${VERSION} PARENT_SCOPE)

Examples/InteractiveTutorial.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,8 +1125,12 @@ int main(int argc, char* argv[])
11251125
return 1;
11261126
}
11271127

1128-
downloadBranch = "tags/" + versionOutput.substr(versionStartPos);
1128+
versionOutput = versionOutput.substr(versionStartPos);
1129+
size_t dashPos = versionOutput.find("-");
1130+
if(dashPos != std::string::npos)
1131+
versionOutput = versionOutput.substr(0, dashPos);
11291132

1133+
downloadBranch = "tags/" + versionOutput;
11301134
}
11311135

11321136
DELAYED_OUTPUT("The whole tutorial is about 15 minutes long.");

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ pipeline
272272
}
273273
}
274274

275-
stash 'source'
275+
stash name: 'source', useDefaultExcludes: false
276276
}
277277
}
278278
post { failure { script { FAILED_STAGE = env.STAGE_NAME } } }

mkdocs/docs/TODO.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
## Done
55

66
### Nightly
7+
8+
### v0.3.1
79
- Check last run is shared lib or executable. Reset cache when necessary if different type
810

911
### v0.3.0

0 commit comments

Comments
 (0)