ci: 依赖 GitHub 托管环境的任务在镜像站上跳过
CI / Go (vet / test / cross-build) (push) Successful in 10m48s
CI / Install script (systemd) (push) Skipped
CI / Docker image (push) Skipped
CI / macOS app (push) Canceled after 0s
CI / Go (vet / test / cross-build) (push) Successful in 10m48s
CI / Install script (systemd) (push) Skipped
CI / Docker image (push) Skipped
CI / macOS app (push) Canceled after 0s
macOS 构建、systemd 安装测试、Docker 镜像与发布只在 github.com 上运行, Gitea 等镜像站的 runner 只跑 Go 测试。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e36d2c27a8
commit
ee3be9e876
2 files changed
+10
-2
No files matched your search
@@ -32,6 +32,8 @@ jobs:
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
name: Install script (systemd)
|
name: Install script (systemd)
|
||||||
|
# 依赖 GitHub 托管环境(macOS / systemd / Docker),在 Gitea 等镜像站上跳过
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -59,6 +61,8 @@ jobs:
|
|||||||
|
|
||||||
macos:
|
macos:
|
||||||
name: macOS app
|
name: macOS app
|
||||||
|
# 依赖 GitHub 托管环境(macOS / systemd / Docker),在 Gitea 等镜像站上跳过
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
runs-on: macos-15
|
runs-on: macos-15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -75,6 +79,8 @@ jobs:
|
|||||||
|
|
||||||
docker:
|
docker:
|
||||||
name: Docker image
|
name: Docker image
|
||||||
|
# 依赖 GitHub 托管环境(macOS / systemd / Docker),在 Gitea 等镜像站上跳过
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
binaries:
|
binaries:
|
||||||
name: Server & agent binaries
|
name: Server & agent binaries
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -32,6 +33,7 @@ jobs:
|
|||||||
|
|
||||||
macos-app:
|
macos-app:
|
||||||
name: macOS app
|
name: macOS app
|
||||||
|
if: github.server_url == 'https://github.com'
|
||||||
runs-on: macos-15
|
runs-on: macos-15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -53,7 +55,7 @@ jobs:
|
|||||||
docker:
|
docker:
|
||||||
name: Docker image
|
name: Docker image
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: docker/setup-qemu-action@v3
|
- uses: docker/setup-qemu-action@v3
|
||||||
@@ -86,7 +88,7 @@ jobs:
|
|||||||
name: GitHub release
|
name: GitHub release
|
||||||
needs: [binaries, macos-app]
|
needs: [binaries, macos-app]
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in new issue
Block a user