File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed
Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,30 @@ permissions:
1818 contents : read
1919
2020jobs :
21+ versioning :
22+ runs-on : ubuntu-latest
23+ name : Update Version
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v4
27+ with :
28+ fetch-depth : 0
29+ persist-credentials : false
30+ - name : Run TinySemVer
31+ uses : ashvardanian/tinysemver@v1.4.1
32+ with :
33+ verbose : " true"
34+ version-file : " VERSION"
35+ update-version-in : ' pyproject.toml,^version = "(\d+\.\d+\.\d+)"'
36+ update-version-in : ' Cargo.toml,^version = "(\d+\.\d+\.\d+)"'
37+ update-version-in : ' package.json,"version": "(\d+\.\d+\.\d+)"'
38+ update-version-in : ' CITATION.cff,^version: (\d+\.\d+\.\d+)'
39+ update-version-in : ' CMakeLists.txt,VERSION (\d+\.\d+\.\d+)'
40+ update-major-version-in : ' include/stringzilla/stringzilla.h,^#define STRINGZILLA_VERSION_MAJOR (\d+)'
41+ update-minor-version-in : ' include/stringzilla/stringzilla.h,^#define STRINGZILLA_VERSION_MINOR (\d+)'
42+ update-patch-version-in : ' include/stringzilla/stringzilla.h,^#define STRINGZILLA_VERSION_PATCH (\d+)'
43+ dry-run : " true"
44+
2145 test_ubuntu_gcc :
2246 name : Ubuntu (GCC 12)
2347 runs-on : ubuntu-22.04
@@ -230,7 +254,7 @@ jobs:
230254 wget https://apt.llvm.org/llvm.sh
231255 chmod +x llvm.sh
232256 sudo ./llvm.sh 16
233-
257+
234258 - name : Build C/C++
235259 run : |
236260 cmake -B build_artifacts \
You can’t perform that action at this time.
0 commit comments