Skip to content

Commit bc34b4e

Browse files
committed
Make: Versioning
1 parent 05c81ac commit bc34b4e

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
22

33
# Define the CUDA architectures.
44
# Empty value is forbidden.
5-
project(ParallelReductionsBenchmark LANGUAGES CXX)
5+
project(
6+
ParallelReductionsBenchmark
7+
LANGUAGES CXX
8+
VERSION 0.1.0
9+
)
610

711
set(CMAKE_CUDA_STANDARD 17)
812
set(CMAKE_CXX_STANDARD 17)

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)