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
1 change: 1 addition & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ out
cmake-build-debug
third_party

.clwb
2 changes: 1 addition & 1 deletion .github/workflows/bazel-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6

# This causes build failures
# - name: Mount bazel cache # Optional
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,17 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Setup bazel
uses: bazelbuild/setup-bazelisk@v2
uses: bazel-contrib/setup-bazel@0.18.0
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}
# Share repository cache between workflows.
repository-cache: true

# This causes build failures
# - name: Mount bazel cache # Optional
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cmake-codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6

- uses: hendrikmuhs/ccache-action@v1.2

Expand Down Expand Up @@ -42,8 +42,8 @@ jobs:
working-directory: ${{github.workspace}}/build
run: |
cd test/CMakeFiles/all_tests.dir/
lcov --directory . --capture -o coverage.info
lcov -r coverage.info */build/* */test/* */c++/* */gtest/* -o coverageFiltered.info
lcov --list coverageFiltered.info
lcov --directory . --capture -o coverage.info --ignore-errors mismatch
lcov -r coverage.info */build/* */test/* */c++/* -o coverageFiltered.info --ignore-errors mismatch
lcov --list coverageFiltered.info --ignore-errors mismatch
bash <(curl -s https://codecov.io/bash) -f coverageFiltered.info || echo "Upload failed"

2 changes: 1 addition & 1 deletion .github/workflows/cmake-macos.yml_fails
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6

# - uses: hendrikmuhs/ccache-action@v1.2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cmake-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6

- uses: hendrikmuhs/ccache-action@v1.2

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v6

- uses: hendrikmuhs/ccache-action@v1.2

Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/codcecov.yml_old

This file was deleted.

7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
- Nothing yet

### Changed
- Added support for bazel 8 and 9, thanks to @polasek
[#142](https://github.com/tzaeschke/phtree-cpp/issues/142)
[#161](https://github.com/tzaeschke/phtree-cpp/pull/161)
- Updated build files, new Release How-To with support for bazel central registry (BCR)
[#163](https://github.com/tzaeschke/phtree-cpp/pull/163)

## [1.6.2] - 2025-03-08
### Fixed
- Fixed links in CHANGELOG and README. [#152](https://github.com/tzaeschke/phtree-cpp/issues/152)
Expand Down
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ bazel_dep(name = "google_benchmark", version = "1.9.5")

# Development environment tooling
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")

BUILDIFIER_VERSION = "0.29.0"
Expand Down
89 changes: 89 additions & 0 deletions ReleaseHowTo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@




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


# Create Release (document WIP)


## Verify code

### Run examples
```shell
bazel run //examples:example
```

### Test release with
- test-phtree-cpp-bazel
- test-phtree-cpp-cmake

### Compilers

- Test with gcc + clang on Linux
- Test with VisualStudio on Windows
- Update references of tested compilers in README.md

## Create Archive

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

Upload to GitHub release.

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


## Bazel Central Repository -- Unfinished documentation

Documentation:
https://github.com/bazelbuild/bazel-central-registry/blob/main/docs/README.md


PH-Tree build target:
```
bazel build //:phtree
```

#### Start

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

#### After modifying any file

Recreate hashes for `source.json`
```shell
bazel run -- //tools:update_integrity phtree-cpp
```
This also accepts `--version` but defaults to latest version.

#### Validate

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

#### Test locally

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

There is also a GitHub action for release automation:
https://github.com/bazel-contrib/publish-to-bcr


#### Test with Test repos

Check out `test-phtree-cpp-bazel` and run:

```shell
bazel shutdown && bazel build --enable_bzlmod --registry="file:///home/.../bazel-central-registry" --lockfile_mode=off @phtree-cpp//:phtree-cpp
--> Target might be incorrect
```