Skip to content

Commit 68d604a

Browse files
Cmake sync script (#1743)
1 parent 47ccbe2 commit 68d604a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ydb/ci/sync_cmakebuild.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
set -e
2+
statusfile="ydb/ci/cmakegen.txt"
3+
prevsha=$(cat ${statusfile})
4+
currsha=$(git rev-parse main)
5+
if [ "${prevsha}" == "${currsha}" ];then
6+
echo "No changes on the main branch, exiting"
7+
exit 0
8+
fi
9+
git merge main --no-edit
10+
./generate_cmake -k
11+
echo ${currsha} > ${statusfile}
12+
git add .
13+
git commit -m "Generate cmake for ${currsha}"
14+

0 commit comments

Comments
 (0)