更新 .gitea/workflows/.gitlab-ci.yml
All checks were successful
Plugin Library CI / publish (00.StaryEvoTools) (push) Successful in 10s
Plugin Library CI / publish (01.HybridCLR) (push) Successful in 4s
Plugin Library CI / publish (03.YooAsset) (push) Successful in 33s
Plugin Library CI / publish (07.RKTools) (push) Successful in 3s
Plugin Library CI / publish (08.UniTask) (push) Successful in 3s
Plugin Library CI / publish (09.CodeChecker) (push) Successful in 16s
Plugin Library CI / publish (10.StoryEditor) (push) Successful in 3s
Plugin Library CI / publish (10.XNode) (push) Successful in 3s
Plugin Library CI / publish (00.ARMazTools) (push) Successful in 2s
Plugin Library CI / publish (00.BuildOriginality) (push) Successful in 2s
Plugin Library CI / publish (00.StaryEvo) (push) Successful in 6s
Plugin Library CI / publish (02.InformationSave) (push) Successful in 3s
Plugin Library CI / publish (04.AudioCore) (push) Successful in 3s
Plugin Library CI / publish (05.TableTextConversion) (push) Successful in 4s
Plugin Library CI / publish (06.UIFarme) (push) Successful in 16s
Plugin Library CI / publish (11.PointCloudTools) (push) Successful in 3s

This commit is contained in:
2026-04-11 14:57:46 +08:00
parent 892b67d407
commit 15d3d24884

View File

@@ -3,22 +3,21 @@ name: Plugin Library CI
on: on:
push: push:
branches: [master, main] branches: [master, main]
workflow_dispatch: # 支持手动触发 workflow_dispatch:
env: env:
SERVER_HOST: ${{ vars.SERVER_HOST }} SERVER_HOST: ${{ vars.SERVER_HOST }}
AuthToken: ${{ vars.AUTH_TOKEN }} AuthToken: ${{ vars.AUTH_TOKEN }}
jobs: jobs:
# 定义所有模块矩阵
publish: publish:
runs-on: dev # 对应你的 GitLab runner tag runs-on: dev
container: container:
image: node:18-bookworm image: node:18-bookworm
strategy: strategy:
fail-fast: false fail-fast: false
max-parallel: 4 # 关键:同时只跑 2 个模块,其余排队 max-parallel: 4
matrix: matrix:
module: module:
- 00.StaryEvo - 00.StaryEvo
@@ -39,23 +38,21 @@ jobs:
- 11.PointCloudTools - 11.PointCloudTools
steps: steps:
#- name: Install Git
# run: |
# apk add --no-cache git
# git --version # 验证
- name: Checkout - name: Checkout
uses: http://106.52.62.106:3000/unity-registry/checkout@v4 uses: http://106.52.62.106:3000/unity-registry/checkout@v4
with: with:
fetch-depth: 1 # 只拉取最新提交,不拉历史 fetch-depth: 1
single-branch: true # 只拉取当前分支 single-branch: true
sparse-checkout: Assets/${{ matrix.module }} # 关键:只拉这个目录 sparse-checkout: Assets/${{ matrix.module }}
sparse-checkout-cone-mode: false # 关键:关闭 cone 模式(更精确) sparse-checkout-cone-mode: false
- name: Setup Node.js - name: Setup Node.js
run: | run: |
ln -sf /srv/18-alpine/bin/node /usr/bin/node ln -sf /srv/18-alpine/bin/node /usr/bin/node 2>/dev/null || true
ln -sf /srv/18-alpine/bin/npm /usr/bin/npm ln -sf /srv/18-alpine/bin/npm /usr/bin/npm 2>/dev/null || true
node -v node -v
# 修正:所有 shell 命令必须缩进在 run: | 下面
- name: Publish ${{ matrix.module }} - name: Publish ${{ matrix.module }}
working-directory: Assets/${{ matrix.module }} working-directory: Assets/${{ matrix.module }}
run: | run: |
@@ -90,8 +87,6 @@ jobs:
exit 1 # 真正的失败,终止 CI exit 1 # 真正的失败,终止 CI
fi fi
- name: Complete - name: Complete
if: always() if: always()
run: echo "====== ${{ matrix.module }} 发布完成 =========" run: echo "====== ${{ matrix.module }} 发布完成 ========="