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