-
Notifications
You must be signed in to change notification settings - Fork 40
Support versioning in git archives #1527
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
base: main
Are you sure you want to change the base?
Support versioning in git archives #1527
Conversation
7a18f88
to
df3546f
Compare
Apparently this file speeds up process of AI contributions to this repository. It was fully generated by copilot.
While releasing UMF we should update VERSION file with the current version. It will be used only if git is not available or tags were not fetched. To underline it is not a "detailed version" we will add "-dev" in CMake version parsing, so it will stand out (comparing to e.g. versions like "1.0.3-dev1-...").
df3546f
to
3827282
Compare
- Verify if scanners/linters/checkers passed | ||
- Verify if version is set properly, especially in `.dll` and `.so` files | ||
- Create/update a VERSION file for GitHub ZIP downloads (users without git): | ||
- `echo "$VERSION" > VERSION` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm actually, wondering - should it be rather $VERSION+1
...? This would align with our vX.X.X-devX
approach (where main is introduced as next release)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it has to be the correct version as this is included in a release (after this file edit, a tag is created).
``` | ||
|
||
### Version Management | ||
- Version determined by: 1) `git describe` (preferred), 2) `VERSION` file fallback, 3) "0.0.0" default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make points multi-line for clarity
|
||
### Code Formatting | ||
- **Always format code before committing**: `make format-apply` | ||
- Requires build with `-DUMF_FORMAT_CODE_STYLE=ON` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add this to a full features example above
- Use `build_umf_test()` CMake function in `test/CMakeLists.txt` | ||
- GPU tests require `UMF_BUILD_GPU_TESTS=ON` and hardware/drivers | ||
- IPC tests use producer/consumer pattern with shell scripts | ||
- Platform-specific tests: `.c` files for portability, `.cpp` for C++ features |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C++ for utils/tests?
- Platform-specific tests: `.c` files for portability, `.cpp` for C++ features | ||
|
||
### CI/CD Structure | ||
- `pr_push.yml`: Main workflow calling reusable workflows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... called for each PR change
This PR was almost fully done with Copilot (Agent Mode).
Fixes: #619