You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

2 months ago
  1. # How to release
  2. * Make sure you're on main and synced to HEAD
  3. * Ensure the project builds and tests run
  4. * `parallel -j0 exec ::: test/*_test` can help ensure everything at least
  5. passes
  6. * Prepare release notes
  7. * `git log $(git describe --abbrev=0 --tags)..HEAD` gives you the list of
  8. commits between the last annotated tag and HEAD
  9. * Pick the most interesting.
  10. * Create one last commit that updates the version saved in `CMakeLists.txt` and the
  11. `__version__` variable in `bindings/python/google_benchmark/__init__.py`to the release
  12. version you're creating. (This version will be used if benchmark is installed from the
  13. archive you'll be creating in the next step.)
  14. ```
  15. project (benchmark VERSION 1.6.0 LANGUAGES CXX)
  16. ```
  17. ```python
  18. # bindings/python/google_benchmark/__init__.py
  19. # ...
  20. __version__ = "1.6.0" # <-- change this to the release version you are creating
  21. # ...
  22. ```
  23. * Create a release through github's interface
  24. * Note this will create a lightweight tag.
  25. * Update this to an annotated tag:
  26. * `git pull --tags`
  27. * `git tag -a -f <tag> <tag>`
  28. * `git push --force --tags origin`
  29. * Confirm that the "Build and upload Python wheels" action runs to completion
  30. * run it manually if it hasn't run