chore: 删除 GitLab CI/CD 配置

This commit is contained in:
小鱼开发
2026-06-11 17:05:34 +08:00
parent 132de3b652
commit 9a71584d6c
-92
View File
@@ -1,92 +0,0 @@
# 美家卡智影 - GitLab CI/CD 配置
# =======================================
# 当前可用 Runner: docker/build (Linux Docker)
# macOS/Windows 构建需手动触发,且需要对应 Runner
workflow:
rules:
- if: $CI_COMMIT_BRANCH == "master" || $CI_COMMIT_TAG
variables:
ARTIFACT_EXPIRE_DAYS: "30"
stages:
- check
- build-frontend
# ==========================================
# Stage 1: 基础检查(在 Docker Runner 上自动执行)
# ==========================================
validate-config:
stage: check
tags:
- docker
script:
- echo "验证项目配置..."
- test -f tauri-app/src-tauri/tauri.conf.json
- test -f tauri-app/package.json
- test -f tauri-app/src-tauri/Cargo.toml
- echo "所有配置文件存在,验证通过"
# ==========================================
# Stage 2: 前端构建(手动触发,需要特定 Runner)
# ==========================================
# macOS Universal 构建
build-frontend-macos:
stage: build-frontend
tags:
- macos
- arm64
when: manual
before_script:
- source "$HOME/.cargo/env" 2>/dev/null || true
- rustup target add x86_64-apple-darwin
- node --version
- npm --version
- cargo --version
- rustc --print host
script:
- cd tauri-app
- npm ci
- npm run tauri -- build --target universal-apple-darwin
artifacts:
name: "meijiaka-macos-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}"
paths:
- tauri-app/src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg
- tauri-app/src-tauri/target/universal-apple-darwin/release/bundle/macos/*.app.tar.gz
- tauri-app/src-tauri/target/universal-apple-darwin/release/bundle/macos/*.app.tar.gz.sig
expire_in: "${ARTIFACT_EXPIRE_DAYS} days"
timeout: 45 minutes
retry:
max: 1
when: runner_system_failure
# Windows x64 构建
build-frontend-windows:
stage: build-frontend
tags:
- windows
- x86_64
when: manual
before_script:
- rustc --version
- cargo --version
- node --version
- npm --version
script:
- cd tauri-app
- npm ci
- npm run tauri -- build --target x86_64-pc-windows-msvc
artifacts:
name: "meijiaka-windows-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}"
paths:
- tauri-app/src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis/*.exe
- tauri-app/src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis/*.exe.sig
- tauri-app/src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis/*-setup.exe
- tauri-app/src-tauri/target/x86_64-pc-windows-msvc/release/bundle/msi/*.msi
expire_in: "${ARTIFACT_EXPIRE_DAYS} days"
timeout: 45 minutes
retry:
max: 1
when: runner_system_failure