From 7d0f4c8065836d6d7e41a2e2a7332035bacd0fbb Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Mon, 6 Jul 2026 22:15:06 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=81=A2=E5=A4=8D=20build-windows=20job(?= =?UTF-8?q?windows-runner=20=E5=B7=B2=E6=8F=90=E7=BA=A7=20user=20=E7=BA=A7?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit runs-on: windows;release-deploy needs [build-android, build-windows] + 下载 windows artifact。 Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_013nMthbVEmQquxBRKb9Fj8u --- .gitea/workflows/deploy-client.yml | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy-client.yml b/.gitea/workflows/deploy-client.yml index 0d24f84..610db94 100644 --- a/.gitea/workflows/deploy-client.yml +++ b/.gitea/workflows/deploy-client.yml @@ -53,12 +53,28 @@ jobs: name: android path: dist/ - # build-windows(runs-on: windows)本轮移除:pangolin 暂无 windows runner。 - # 待注册 windows runner 后从 git 历史(commit 2698116)恢复该 job + release-deploy - # 的 needs/下载步骤 + compile-windows.sh 已就绪。 + build-windows: + runs-on: windows + env: + GOPROXY: https://goproxy.cn,direct + PUB_HOSTED_URL: https://pub.flutter-io.cn + FLUTTER_STORAGE_BASE_URL: https://storage.flutter-io.cn + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Compile (Windows installer) + shell: bash + run: bash scripts/ci/compile-windows.sh "${{ gitea.ref_name }}" + + - name: Upload windows artifact + uses: actions/upload-artifact@v3 + with: + name: windows + path: dist/ release-deploy: - needs: [build-android] + needs: [build-android, build-windows] runs-on: mac steps: - name: Checkout @@ -70,6 +86,12 @@ jobs: name: android path: dist/ + - name: Download windows artifact + uses: actions/download-artifact@v3 + with: + name: windows + path: dist/ + - name: Release → Forgejo env: FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}