瀏覽代碼

--no-clean for faster CI build runs in dev

default_compile_flags
vector-of-bool 4 年之前
父節點
當前提交
5891ca0ce9
共有 1 個檔案被更改,包括 8 行新增2 行删除
  1. +8
    -2
      tools/ci.py

+ 8
- 2
tools/ci.py 查看文件

@@ -75,6 +75,12 @@ def main(argv: Sequence[str]) -> int:
'--build-only',
action='store_true',
help='Only build the `dds` executable. Skip second-phase and tests.')
parser.add_argument(
'--no-clean',
action='store_false',
dest='clean',
help='Don\'t remove prior build/deps results',
)
args = parser.parse_args(argv)

opts = CIOptions(toolchain=args.toolchain)
@@ -89,11 +95,11 @@ def main(argv: Sequence[str]) -> int:
assert False, 'impossible'

old_cat_path = paths.PREBUILT_DIR / 'catalog.db'
if old_cat_path.is_file():
if old_cat_path.is_file() and args.clean:
old_cat_path.unlink()

ci_repo_dir = paths.PREBUILT_DIR / 'ci-repo'
if ci_repo_dir.exists():
if ci_repo_dir.exists() and args.clean:
shutil.rmtree(ci_repo_dir)

self_build(

Loading…
取消
儲存