Skip to content

Commit

Permalink
Check revisions before rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
znz committed Jun 7, 2024
1 parent 57ef197 commit ff98303
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions db/bitclust.rev
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
102b5559c7723d39263e0480bb0518ca3000ed3c
1 change: 1 addition & 0 deletions db/doctree.rev
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c0d22f34ed2ab0b0f0dd65e5f6dace30260dbbac
8 changes: 8 additions & 0 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ else
git clone --depth 1 https://github.com/rurema/doctree repos/doctree
fi

git -C repos/bitclust rev-parse HEAD > db/bitclust.rev
git -C repos/doctree rev-parse HEAD > db/doctree.rev

if [ -z "$(git status -s db/*.rev)" ]; then
echo do nothing because bitclust and doctree are same revisions
exit
fi

time docker compose build rurema

time docker compose run --rm rurema ls -al
Expand Down

0 comments on commit ff98303

Please sign in to comment.