Fix binary output different in different platform (#7718)

* Fix binary output different in different platform, due to the nan serialization

* Add check generated code on windows ci

* Remove resdundant script

* Fix eof, and check script

* Minor bug in gen code script

* Fix windows script, remove redundant scripts

* Undelete redundante codes

* Fix github action

* Ignore eof generate grpc

Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
Saman
2023-01-11 04:04:25 +08:00
committed by GitHub
parent 40758674b1
commit 62e4d2e5b2
7 changed files with 52 additions and 69 deletions

View File

@@ -26,7 +26,7 @@ script_path = Path(__file__).parent.resolve()
# Get the root path as an absolute path, so all derived paths are absolute.
root_path = script_path.parent.absolute()
result = subprocess.run(["git", "diff", "--quiet"], cwd=root_path)
result = subprocess.run(["git", "diff", "--quiet", "--ignore-cr-at-eol"], cwd=root_path)
if result.returncode != 0:
print(
@@ -46,7 +46,7 @@ if platform.system() == "Windows":
gen_cmd = ["py"] + gen_cmd
subprocess.run(gen_cmd, cwd=root_path)
result = subprocess.run(["git", "diff", "--quiet"], cwd=root_path)
result = subprocess.run(["git", "diff", "--quiet", "--ignore-cr-at-eol"], cwd=root_path)
if result.returncode != 0:
print(