Skip to content

Commit

Permalink
ci(release): add ensure temp feature to relase script
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed Mar 18, 2023
1 parent cb34771 commit e72d798
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,19 @@ def compile_release():
cross_compile_compiler()


def ensure_temp():
temp_path = os.path.join(ROOT, CONFIG.temp)
if os.path.isdir(temp_path):
return
os.mkdir(temp_path)
if not os.path.isdir(temp_path):
print(Colors.fail("Failed to create temp_path:"), temp_path)


if __name__ == "__main__":
# Set work directory to be that of project root.
os.chdir(ROOT)
ensure_temp()
compile_release()
print("-" * 40)
build_releases()

0 comments on commit e72d798

Please sign in to comment.