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
16 changes: 16 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release Please

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.1.2"
}
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.28)
project(nbytes VERSION 0.1.2)
project(nbytes VERSION 0.1.2) # x-release-please-version

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED True)
Expand Down
8 changes: 4 additions & 4 deletions include/nbytes.h
Original file line number Diff line number Diff line change
Expand Up @@ -836,12 +836,12 @@ size_t SearchString(const char *haystack, size_t haystack_length,

// ============================================================================
// Version metadata
#define NBYTES_VERSION "0.1.1"
#define NBYTES_VERSION "0.1.2" // x-release-please-version

enum {
NBYTES_VERSION_MAJOR = 0,
NBYTES_VERSION_MINOR = 1,
NBYTES_VERSION_REVISION = 1,
NBYTES_VERSION_MAJOR = 0, // x-release-please-major
NBYTES_VERSION_MINOR = 1, // x-release-please-minor
NBYTES_VERSION_REVISION = 2, // x-release-please-patch
};

} // namespace nbytes
Expand Down
11 changes: 11 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"packages": {
".": {
"release-type": "simple",
"extra-files": [
"CMakeLists.txt",
"include/nbytes.h"
]
}
}
}