From 5e84fea7d01a2d07fb6c5c20c7ad11a9778192b3 Mon Sep 17 00:00:00 2001 From: shanshanzhong Date: Thu, 6 Nov 2025 09:02:01 -0800 Subject: [PATCH] =?UTF-8?q?ci(workflow):=20=E4=BC=98=E5=8C=96=20Windows=20?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E5=B7=A5=E4=BD=9C=E6=B5=81=E7=9A=84=E7=A8=80?= =?UTF-8?q?=E7=96=8F=E6=A3=80=E5=87=BA=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除不必要的稀疏检出规则,并针对本地 act 验证优化目录级稀疏检出配置 --- .github/workflows/build-windows.yml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 508b5af..adb7425 100755 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -25,12 +25,6 @@ jobs: with: submodules: recursive fetch-depth: 0 - # Windows 无法签出包含 '*' 的文件名,使用稀疏检出排除该路径 - sparse-checkout: | - / - /** - !assets/images/logo-1024*024.png - sparse-checkout-cone: false - name: 🔧 设置 Go 环境 uses: actions/setup-go@v5 @@ -244,11 +238,18 @@ jobs: submodules: recursive fetch-depth: 0 persist-credentials: false + # 仅用于本地 act 验证:目录级稀疏检出,避免包含 Windows 非法文件 sparse-checkout: | - / - /** - !assets/images/logo-1024*024.png - sparse-checkout-cone: false + .github + lib + libcore + android + ios + windows + assets/core + assets/fonts + assets/translations + sparse-checkout-cone: true - name: Verify submodules shell: powershell