From 781e95c5c1f09c4c4f4b93f732defecbec01a2ec Mon Sep 17 00:00:00 2001 From: starmen1265 Date: Sun, 1 Mar 2026 00:46:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=20runner=20=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E4=B8=BA=20linux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 6 +++--- .gitea/workflows/deploy.yml | 6 +++--- .gitea/workflows/test.yml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c0d48f3..aae5786 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: # 代码检查 lint: name: 代码检查 - runs-on: ubuntu-latest + runs-on: linux steps: - name: 检出代码 uses: actions/checkout@v4 @@ -35,7 +35,7 @@ jobs: # 单元测试 test: name: 单元测试 - runs-on: ubuntu-latest + runs-on: linux needs: lint steps: - name: 检出代码 @@ -67,7 +67,7 @@ jobs: # 构建状态 ci-status: name: CI 状态 - runs-on: ubuntu-latest + runs-on: linux needs: [lint, test] if: always() steps: diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index c4ce40c..bd4962a 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -18,7 +18,7 @@ jobs: # 部署到测试环境 deploy-staging: name: 部署测试环境 - runs-on: ubuntu-latest + runs-on: linux if: github.ref == 'refs/heads/develop' environment: name: staging @@ -69,7 +69,7 @@ jobs: # 部署到正式环境 deploy-production: name: 部署正式环境 - runs-on: ubuntu-latest + runs-on: linux if: github.ref == 'refs/heads/main' environment: name: production @@ -131,7 +131,7 @@ jobs: # 手动部署 manual-deploy: name: 手动部署 - runs-on: ubuntu-latest + runs-on: linux if: github.event_name == 'workflow_dispatch' environment: name: ${{ github.event.inputs.environment }} diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 878b5a1..522b39d 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -10,7 +10,7 @@ jobs: # 快速测试 quick-test: name: 快速测试 - runs-on: ubuntu-latest + runs-on: linux steps: - name: 检出代码 uses: actions/checkout@v4