File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,17 @@ jobs:
31
31
sed -i "s/^release = \".*\"/release = \"v${VERSION}\"/" docs/conf.py
32
32
sed -i "s/^version = \".*\"/version = \"${VERSION}\"/" pyproject.toml
33
33
34
- # Update header file
35
34
IFS='.' read -ra VER <<< "$VERSION"
36
35
MAJOR=${VER[0]}
37
36
MINOR=${VER[1]}
38
37
PATCH=${VER[2]}
39
38
39
+ # Update CMakeLists.txt
40
+ sed -i "s/set(MSCCLPP_MAJOR \".*\")/set(MSCCLPP_MAJOR \"${MAJOR}\")/" CMakeLists.txt
41
+ sed -i "s/set(MSCCLPP_MINOR \".*\")/set(MSCCLPP_MINOR \"${MINOR}\")/" CMakeLists.txt
42
+ sed -i "s/set(MSCCLPP_PATCH \".*\")/set(MSCCLPP_PATCH \"${PATCH}\")/" CMakeLists.txt
43
+
44
+ # Update header files
40
45
sed -i "s/#define MSCCLPP_MAJOR .*/#define MSCCLPP_MAJOR ${MAJOR}/" include/mscclpp/core.hpp
41
46
sed -i "s/#define MSCCLPP_MINOR .*/#define MSCCLPP_MINOR ${MINOR}/" include/mscclpp/core.hpp
42
47
sed -i "s/#define MSCCLPP_PATCH .*/#define MSCCLPP_PATCH ${PATCH}/" include/mscclpp/core.hpp
You can’t perform that action at this time.
0 commit comments