Skip to content

Commit

Permalink
TO REVERT: force incremental build for faster debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jolly-chen committed Apr 25, 2024
1 parent c0e8214 commit c2c78ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/root-ci-config/build_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ def main():
# The sha1 of the build option string is used to find existing artifacts
# with matching build options on s3 storage.
option_hash = sha1(options.encode('utf-8')).hexdigest()

# TEMPORARY: force incremental build for faster debugging
option_hash = "a2bf4e78066e394ef22a80d94500b4a252512440"

obj_prefix = f'{args.platform}/{args.base_ref}/{args.buildtype}/{option_hash}'

# Make testing of CI in forks not impact artifacts
Expand Down Expand Up @@ -136,6 +140,12 @@ def main():
if not WINDOWS:
show_node_state()

# TEMPORARY: force incremental build for faster debugging
result = subprocess_with_log(f"""
rm -rf {os.path.join(WORKDIR, "build", "CMakeCache.txt")}
""")
cmake_configure(options, args.buildtype)

build(options, args.buildtype)

# Build artifacts should only be uploaded for full builds, and only for
Expand Down

0 comments on commit c2c78ca

Please sign in to comment.