From dce32e706bb6a7085c44d5c73c18789705bb6593 Mon Sep 17 00:00:00 2001 From: shanshanzhong Date: Thu, 6 Nov 2025 08:41:42 -0800 Subject: [PATCH] =?UTF-8?q?ci(workflow):=20=E4=BF=AE=E5=A4=8D=20Windows=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=E4=B8=AD=E7=A8=80=E7=96=8F=E6=A3=80?= =?UTF-8?q?=E5=87=BA=E9=85=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整稀疏检出配置以解决 Windows 无法签出包含 '*' 的文件名的问题 --- .github/workflows/build-windows.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index e74b0b4..508b5af 100755 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -25,6 +25,12 @@ 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 @@ -239,7 +245,8 @@ jobs: fetch-depth: 0 persist-credentials: false sparse-checkout: | - /* + / + /** !assets/images/logo-1024*024.png sparse-checkout-cone: false