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/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Conventional Commit Linter

on:
push:
branches:
- main
pull_request:

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
fetch-depth: 100
- uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1
18 changes: 18 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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
with:
release-type: simple
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "1.0.1"
}
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(ncrypto)
project(ncrypto VERSION 1.0.1) # x-release-please-version

include(CTest)
include(GNUInstallDirs)
Expand Down
10 changes: 1 addition & 9 deletions include/ncrypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -1884,14 +1884,6 @@ class AeadCtxPointer final {
};
#endif

// ============================================================================
// Version metadata
#define NCRYPTO_VERSION "0.0.1"

enum {
NCRYPTO_VERSION_MAJOR = 0,
NCRYPTO_VERSION_MINOR = 0,
NCRYPTO_VERSION_REVISION = 1,
};
#include "version.h"

} // namespace ncrypto
14 changes: 14 additions & 0 deletions include/version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// ============================================================================
// Version metadata
#ifndef NCRYPTO_VERSION_H_
#define NCRYPTO_VERSION_H_

#define NCRYPTO_VERSION "1.0.1" // x-release-please-version

enum {
NCRYPTO_VERSION_MAJOR = 1, // x-release-please-major
NCRYPTO_VERSION_MINOR = 0, // x-release-please-minor
NCRYPTO_VERSION_REVISION = 1, // x-release-please-patch
};

#endif // NCRYPTO_VERSION_H_
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/version.h"
]
}
}
}