Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
- Nothing yet

## [1.7.0] - 2025-03-01
### Changed
- Added support for bazel 8 and 9, thanks to @polasek
[#142](https://github.com/tzaeschke/phtree-cpp/issues/142)
Expand Down Expand Up @@ -252,7 +253,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Nothing.


[Unreleased]: https://github.com/tzaeschke/phtree-cpp/compare/v1.6.2...HEAD
[Unreleased]: https://github.com/tzaeschke/phtree-cpp/compare/v1.7.0...HEAD
[1.7.0]: https://github.com/tzaeschke/phtree-cpp/compare/v1.6.2...v1.7.0
[1.6.2]: https://github.com/tzaeschke/phtree-cpp/compare/v1.6.1...v1.6.2
[1.6.1]: https://github.com/tzaeschke/phtree-cpp/compare/v1.6.0...v1.6.1
[1.6.0]: https://github.com/tzaeschke/phtree-cpp/compare/v1.5.0...v1.6.0
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.14)

project(phtree VERSION 1.6.2
project(phtree VERSION 1.7.0
DESCRIPTION "PH-Tree C++"
HOMEPAGE_URL "https://github.com/tzaeschke/phtree-cpp"
LANGUAGES CXX)
Expand Down
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "phtree-cpp",
version = "1.6.2",
version = "1.7.0",
)

# Bazel rules repositories.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,11 @@ __before__ importing any Windows SDK dependencies.
<a id="bazel"></a>

### Bazel
`WORKSPACE` file:
`MODULE.bazel` file:
```
http_archive(
name = "phtree",
strip_prefix = "phtree-cpp-v1.6.2",
strip_prefix = "phtree-cpp-v1.7.0",
url = "https://github.com/tzaeschke/phtree-cpp",
)
```
Expand Down Expand Up @@ -617,7 +617,7 @@ include(FetchContent)
FetchContent_Declare(
phtree
GIT_REPOSITORY https://github.com/tzaeschke/phtree-cpp.git
GIT_TAG v1.6.2
GIT_TAG v1.7.0
)
FetchContent_MakeAvailable(phtree)
```
Expand Down
35 changes: 23 additions & 12 deletions ReleaseHowTo.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@




https://github.com/tzaeschke/phtree-cpp/releases/v1.6.2/download/v1.6.2.tar.gz


# Create Release (document WIP)


## Verify code

### Run examples
Expand All @@ -25,17 +18,35 @@ bazel run //examples:example
- Test with VisualStudio on Windows
- Update references of tested compilers in README.md

## Release Prep

* Create branch/PR `release/1.7.0`
* Update version in
* MODULE.bazel
* CMakeLists.txt
* README.md
* CHANGELOG.md (don't forget links at the bottom)
* Commit, push, merge

## Create GitHub release

...

## Create Archive

```bash
git archive --format=zip v1.6.2 > phtree-cpp-v1.6.2.zip
git archive --format=zip v1.7.0 > phtree-cpp-v1.7.0.zip
```

Upload to GitHub release.

Resulting link:
```
https://github.com/tzaeschke/phtree-cpp/releases/download/v1.6.2/phtree-cpp-v1.6.2.zip
https://github.com/tzaeschke/phtree-cpp/releases/download/v1.7.0/phtree-cpp-v1.7.0.zip
```
or
```
https://github.com/tzaeschke/phtree-cpp/releases/v1.7.0/download/v1.7.0.tar.gz
```


Expand All @@ -53,7 +64,7 @@ bazel build //:phtree
#### Start

Checkout personal fork of bazel-central-registry.
Create branch `phtree-cpp@1.6.2`.
Create branch `phtree-cpp@1.7.0`.

#### After modifying any file

Expand All @@ -66,13 +77,13 @@ bazel run -- //tools:update_integrity phtree-cpp
#### Validate

```shell
bazel run -- //tools:bcr_validation --check=phtree-cpp@1.6.2
bazel run -- //tools:bcr_validation --check=phtree-cpp@1.7.0
```

#### Test locally

```bash
bazel run //tools:setup_presubmit_repos -- --module phtree-cpp@1.6.2
bazel run //tools:setup_presubmit_repos -- --module phtree-cpp@1.7.0
```

There is also a GitHub action for release automation:
Expand Down