From bf99ce273fc5a4864ec929319a1566e78f6d4727 Mon Sep 17 00:00:00 2001 From: chenmozhijin <110812055+chenmozhijin@users.noreply.github.com> Date: Sat, 28 Sep 2024 23:06:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build_helper/build.py | 2 ++ build_helper/releases.py | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/build_helper/build.py b/build_helper/build.py index feb22e18..100a85cd 100644 --- a/build_helper/build.py +++ b/build_helper/build.py @@ -126,6 +126,8 @@ def base_builds(cfg: dict) -> None: openwrt.make("tools/install") logger.info("开始编译toolchain...") openwrt.make("toolchain/install") + logger.info("正在清理...") + openwrt.make("clean") logger.info("下载编译内核所需源码...") openwrt.download_source("target/download") diff --git a/build_helper/releases.py b/build_helper/releases.py index a219126f..08c14929 100644 --- a/build_helper/releases.py +++ b/build_helper/releases.py @@ -5,12 +5,14 @@ import shutil from datetime import datetime, timedelta, timezone +from actions_toolkit.github import Context + from .utils.logger import logger from .utils.network import request_get from .utils.openwrt import ImageBuilder from .utils.paths import paths -from .utils.repo import dl_artifact, match_releases, new_release, user_repo, get_current_commit, repo -from actions_toolkit.github import Context +from .utils.repo import dl_artifact, get_current_commit, match_releases, new_release, repo, user_repo + def releases(cfg: dict) -> None: """发布到 GitHub"""