From ab0cee8b40c56b4c5e60bb8411953593202f4362 Mon Sep 17 00:00:00 2001 From: chenmoyuan1214 Date: Sat, 21 Nov 2026 19:44:32 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20build-bot=20=E5=A2=9E=E5=8A=A0=E3=80=8C?= =?UTF-8?q?=E5=BC=80=E5=A7=8B=E7=BC=96=E8=AF=91=E3=80=8D=E5=9B=9E=E6=89=A7?= =?UTF-8?q?=EF=BC=9BmacOS=20runner=20=E6=94=B9=E7=94=A8=20macos-latest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 收到 @build-bot build <目标> 后立即回帖「开始编译」,附来源提交、目标、日志链接 - 编译完成仍走原来的结果回帖(成功给 release 链接,失败给日志链接) - runs-on: macos-14 → macos-latest: macos-14 在本仓库被判为 'macos-14-arm64-us-default' 不受支持,job 在启动前即被取消 --- .github/workflows/build-bot.yml | 31 +++++++++++++++++++++++- .github/workflows/nightly-prerelease.yml | 2 +- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-bot.yml b/.github/workflows/build-bot.yml index 485f5a8..6283e5a 100644 --- a/.github/workflows/build-bot.yml +++ b/.github/workflows/build-bot.yml @@ -86,10 +86,39 @@ jobs: echo "ref=$REF" >> "$GITHUB_OUTPUT" echo "目标=$TARGET 提交=$REF 是否PR=$IS_PR" + - name: 回复「开始编译」 + if: steps.parse.outputs.ok == 'true' + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE: ${{ github.event.issue.number }} + TARGET: ${{ steps.parse.outputs.target }} + REF: ${{ steps.parse.outputs.ref }} + RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + run: | + set -e + case "$TARGET" in + mac) PLATFORMS="macOS" ;; + win-amd) PLATFORMS="Windows amd64" ;; + win-arm) PLATFORMS="Windows arm64" ;; + *) PLATFORMS="macOS + Windows amd64 + Windows arm64" ;; + esac + + cat > ack.md <