From 4dcaa50044a84622d2b965344a384a19c44a84ef Mon Sep 17 00:00:00 2001 From: Ziao Huang <71763696+amazing-fish@users.noreply.github.com> Date: Thu, 8 Jan 2026 19:47:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8C=85=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E8=B7=AF=E5=BE=84=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-exe.yml | 10 ++++++++-- anchor.md | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-exe.yml b/.github/workflows/build-exe.yml index 4f73a6b..e18e644 100644 --- a/.github/workflows/build-exe.yml +++ b/.github/workflows/build-exe.yml @@ -12,6 +12,8 @@ permissions: jobs: build: runs-on: windows-latest + env: + PIP_CACHE_DIR: ${{ runner.temp }}\pip-cache steps: - name: 检出代码 @@ -22,10 +24,14 @@ jobs: with: python-version: '3.11' + - name: 准备 pip 缓存目录 + run: | + New-Item -ItemType Directory -Force -Path "$env:PIP_CACHE_DIR" | Out-Null + - name: 缓存 pip uses: actions/cache@v4 with: - path: ~/.cache/pip + path: ${{ env.PIP_CACHE_DIR }} key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }} restore-keys: | ${{ runner.os }}-pip- @@ -33,7 +39,7 @@ jobs: - name: 安装依赖 run: | python -m pip install --upgrade pip - pip install pyinstaller PySide6 + pip install pyinstaller PySide6 --cache-dir "$env:PIP_CACHE_DIR" - name: 构建可执行文件 run: | diff --git a/anchor.md b/anchor.md index 8c34047..4d3a7c1 100644 --- a/anchor.md +++ b/anchor.md @@ -66,6 +66,7 @@ - 若确认无变更,提交说明需写明“锚点已复盘,无需更新”。 ## 最近约定变更 +- 2026-01-10:bugfix,修复 Windows 打包流程的 pip 缓存路径以避免缓存警告(不触发版本号)。 - 2026-01-09:refactor,GitHub Actions 打包流程增加 pip 缓存以提升构建速度(不触发版本号)。 - 2026-01-08:bugfix,调整新增任务按钮位置避免窄屏与排序选项重叠,版本更新至 `v1.7.3`。 - 2026-01-08:refactor,锚点流程拆分至协作约定,保持锚点聚焦技术路径与日志稳定性(不触发版本号)。