Skip to content

Commit ce7f21f

Browse files
committed
Make: Enable Semantic Versioning
1 parent 9e2049d commit ce7f21f

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
env:
8+
BUILD_TYPE: Release
9+
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
10+
PYTHONUTF8: 1
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: write
15+
pages: write
16+
id-token: write
17+
packages: write
18+
19+
jobs:
20+
versioning:
21+
name: Update Version
22+
runs-on: ubuntu-24.04
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
persist-credentials: false
29+
- name: Run TinySemVer
30+
uses: ashvardanian/[email protected]
31+
with:
32+
verbose: "true"
33+
version-file: "VERSION"
34+
update-version-in: |
35+
CMakeLists.txt:VERSION (\d+\.\d+\.\d+)
36+
dry-run: "false"
37+
push: "true"
38+
create-release: "true"
39+
github-token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
44
# ------------------------------------------------------------------------------
55
# Project Setup
66
# ------------------------------------------------------------------------------
7-
project(less_slow LANGUAGES CXX)
7+
project(less_slow
8+
VERSION 0.1.0
9+
LANGUAGES C CXX
10+
DESCRIPTION "Learning how to write Less Slow code, from numerical micro-kernels and SIMD to coroutines, ranges, and polymorphic state machines"
11+
HOMEPAGE_URL "https://github.com/ashvardanian/less_slow.cpp")
12+
13+
set(CMAKE_C_STANDARD 99)
814
set(CMAKE_CXX_STANDARD 20)
915
set(CMAKE_CXX_STANDARD_REQUIRED YES)
1016
set(CMAKE_CXX_EXTENSIONS NO)

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.1.0

0 commit comments

Comments
 (0)