Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/build-exe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ permissions:
jobs:
build:
runs-on: windows-latest
env:
PIP_CACHE_DIR: ${{ runner.temp }}\pip-cache

steps:
- name: 检出代码
Expand All @@ -22,18 +24,22 @@ 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-

- name: 安装依赖
run: |
python -m pip install --upgrade pip
pip install pyinstaller PySide6
pip install pyinstaller PySide6 --cache-dir "$env:PIP_CACHE_DIR"

- name: 构建可执行文件
run: |
Expand Down
1 change: 1 addition & 0 deletions anchor.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,锚点流程拆分至协作约定,保持锚点聚焦技术路径与日志稳定性(不触发版本号)。
Expand Down