Skip to content

Commit

Permalink
Merge pull request #1051 from lukaszstolarczuk/minor-updates
Browse files Browse the repository at this point in the history
Minor updates around versioning
  • Loading branch information
lukaszstolarczuk authored Jan 21, 2025
2 parents 76e4f12 + eb7c46d commit d3daaf6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions RELEASE_STEPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ Do changes for a release:
- If stable branch for this release is required, create it:
- `git checkout -b v$VER.x`
- For some early versions (like `0.1.0`) we may omit creation of the branch
- For major/minor release, when release is done, add an extra "dev" tag on the `main` branch:
- `git tag -a -s -m "Development version $VERSION+1" v$VERSION+1-dev`
- for example, when `v0.1.0` is released, the dev tag would be `v0.2.0-dev`
- if needed, further in time, an extra dev tag can be introduced, e.g. `v0.2.0-dev1`
- This way, the `main` branch will introduce itself as the next version

## Publish changes

Expand Down
12 changes: 6 additions & 6 deletions cmake/helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ function(set_version_variables)
return()
endif()

# v1.5.0-dev - we're on a development tag -> UMF ver: "1.5.0-dev"
string(REGEX MATCHALL "\^v([0-9]+\.[0-9]+\.[0-9]+)-dev\$" MATCHES
# v1.5.0-dev1 - we're on a development tag -> UMF ver: "1.5.0-dev1"
string(REGEX MATCHALL "\^v([0-9]+\.[0-9]+\.[0-9]+)-(dev[0-9]?)\$" MATCHES
${GIT_VERSION})
if(MATCHES)
set(UMF_VERSION
"${CMAKE_MATCH_1}-dev"
"${CMAKE_MATCH_1}-${CMAKE_MATCH_2}"
PARENT_SCOPE)
set(UMF_CMAKE_VERSION
"${CMAKE_MATCH_1}"
Expand Down Expand Up @@ -157,12 +157,12 @@ function(set_version_variables)
return()
endif()

# v1.5.0-dev-19-gb8f7a32 -> UMF ver: "1.5.0-dev.git19.gb8f7a32"
string(REGEX MATCHALL "v([0-9.]*)-dev-([0-9]*)-([0-9a-g]*)" MATCHES
# v1.5.0-dev2-19-gb8f7a32 -> UMF ver: "1.5.0-dev2.git19.gb8f7a32"
string(REGEX MATCHALL "v([0-9.]*)-(dev[0-9]?)-([0-9]*)-([0-9a-g]*)" MATCHES
${GIT_VERSION})
if(MATCHES)
set(UMF_VERSION
"${CMAKE_MATCH_1}-dev.git${CMAKE_MATCH_2}.${CMAKE_MATCH_3}"
"${CMAKE_MATCH_1}-${CMAKE_MATCH_2}.git${CMAKE_MATCH_3}.${CMAKE_MATCH_4}"
PARENT_SCOPE)
set(UMF_CMAKE_VERSION
"${CMAKE_MATCH_1}"
Expand Down
6 changes: 3 additions & 3 deletions src/libumf.def
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ EXPORTS
umfFileMemoryProviderParamsSetPath
umfFileMemoryProviderParamsSetProtection
umfFileMemoryProviderParamsSetVisibility
umfFixedMemoryProviderOps
umfFixedMemoryProviderParamsCreate
umfFixedMemoryProviderParamsDestroy
umfFree
umfGetIPCHandle
umfGetLastFailedMemoryProvider
Expand Down Expand Up @@ -121,4 +118,7 @@ EXPORTS
umfScalablePoolParamsSetGranularity
umfScalablePoolParamsSetKeepAllMemory
; Added in UMF_0.11
umfFixedMemoryProviderOps
umfFixedMemoryProviderParamsCreate
umfFixedMemoryProviderParamsDestroy
umfLevelZeroMemoryProviderParamsSetFreePolicy

0 comments on commit d3daaf6

Please sign in to comment.