Skip to content

[CMake] Update versioning #616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 18, 2024
Merged

Conversation

lukaszstolarczuk
Copy link
Contributor

@lukaszstolarczuk lukaszstolarczuk commented Jul 16, 2024

Properly set version based on our git tags.
For CMake's sake we use major.minor.patch
For Windows dll metadata we use major.minor.build.revision and additional variables.

Print the dll's metadata, to check correctness.

Fixes: #565

@bratpiorka
Copy link
Contributor

shouldn't you change "UMF_VERSION" in basic.yml line 11?

@lukaszstolarczuk
Copy link
Contributor Author

shouldn't you change "UMF_VERSION" in basic.yml line 11?

heh, it's the other way around - I forgot that by default in CI, we have a shallow clone. It caused no git history, so no tags, so the version was improperly set to "0.0.0" (instead of expected 0.1.0).

ldorau

This comment was marked as outdated.

@lukaszstolarczuk lukaszstolarczuk force-pushed the update-versioning branch 3 times, most recently from 1b48db3 to 73982ef Compare July 17, 2024 09:38
ldorau
ldorau previously requested changes Jul 17, 2024
@lukaszstolarczuk lukaszstolarczuk force-pushed the update-versioning branch 2 times, most recently from 8372043 to 242edf6 Compare July 17, 2024 13:03
@ldorau ldorau dismissed their stale review July 17, 2024 13:28

Outdated

@lukaszstolarczuk lukaszstolarczuk marked this pull request as ready for review July 17, 2024 13:47
@lukaszstolarczuk lukaszstolarczuk requested a review from a team as a code owner July 17, 2024 13:47
@lukaszstolarczuk
Copy link
Contributor Author

I just added last few changes in the comments, plus removed the redundant messages - now we only print the UMF version (one and only 😉 )

lukaszstolarczuk and others added 4 commits July 18, 2024 10:49
to assure a git tag (setting the version) is available.
Properly set version based on our git tags.
For CMake's sake we use major.minor.patch
For Windows dll metadata we use major.minor.build.revision and
additional variables.
make UMF_VERSION a common umf definition, to be used everywhere.
@ldorau ldorau merged commit ac26c57 into oneapi-src:main Jul 18, 2024
65 checks passed
@lukaszstolarczuk lukaszstolarczuk deleted the update-versioning branch July 18, 2024 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UMF versioning is doubled (and not compatibile with semver.)
3 participants