[Build] Update artifacts only when needed (#150)

This commit is contained in:
SpaiR authored and GitHub committed 2022-12-15 12:36:35 +02:00
1 parent 8356d76a62
commit a2bacb292e
2 files changed
+29 -8

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import sys
import os
# A python script to compare file size of two files.
# Used to compare sizes of binaries to see, if there is a difference between them.
# Shell scripts are not used, since Python is a more portable solution.
os.path.getsize(sys.argv[1]) == os.path.getsize(sys.argv[2]) if sys.exit(0) else sys.exit(1)