From ee3be9e87699e63b3978039a3e2d52036cb11f1f Mon Sep 17 00:00:00 2001 From: DeepFal <41166795+DeepFal@users.noreply.github.com> Date: Tue, 13 Oct 2026 16:26:50 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BE=9D=E8=B5=96=20GitHub=20=E6=89=98?= =?UTF-8?q?=E7=AE=A1=E7=8E=AF=E5=A2=83=E7=9A=84=E4=BB=BB=E5=8A=A1=E5=9C=A8?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E7=AB=99=E4=B8=8A=E8=B7=B3=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit macOS 构建、systemd 安装测试、Docker 镜像与发布只在 github.com 上运行, Gitea 等镜像站的 runner 只跑 Go 测试。 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 6 ++++++ .github/workflows/release.yml | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6fb6d2..c51e53b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,6 +32,8 @@ jobs: install: name: Install script (systemd) + # 依赖 GitHub 托管环境(macOS / systemd / Docker),在 Gitea 等镜像站上跳过 + if: github.server_url == 'https://github.com' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -59,6 +61,8 @@ jobs: macos: name: macOS app + # 依赖 GitHub 托管环境(macOS / systemd / Docker),在 Gitea 等镜像站上跳过 + if: github.server_url == 'https://github.com' runs-on: macos-15 steps: - uses: actions/checkout@v4 @@ -75,6 +79,8 @@ jobs: docker: name: Docker image + # 依赖 GitHub 托管环境(macOS / systemd / Docker),在 Gitea 等镜像站上跳过 + if: github.server_url == 'https://github.com' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 535d4b2..4f092af 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,6 +13,7 @@ permissions: jobs: binaries: name: Server & agent binaries + if: github.server_url == 'https://github.com' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -32,6 +33,7 @@ jobs: macos-app: name: macOS app + if: github.server_url == 'https://github.com' runs-on: macos-15 steps: - uses: actions/checkout@v4 @@ -53,7 +55,7 @@ jobs: docker: name: Docker image runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/v') + if: github.server_url == 'https://github.com' && startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v3 @@ -86,7 +88,7 @@ jobs: name: GitHub release needs: [binaries, macos-app] runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/v') + if: github.server_url == 'https://github.com' && startsWith(github.ref, 'refs/tags/v') steps: - uses: actions/download-artifact@v4 with: