初始化

This commit is contained in:
2025-12-11 10:12:50 +08:00
parent 445a364715
commit c2504a864e

View File

@@ -11,45 +11,61 @@ on:
jobs:
build:
strategy:
fail-fast: false # 一个失败不影响其他
matrix:
include:
# Windows 64位
- os: windows-latest
platform: win64
artifact_name: CheeseCloudTools-Windows-x64
# Windows 32位 (使用 32位 Python)
# - os: windows-latest
# platform: win32
# artifact_name: CheeseCloudTools-Windows-x86
# python_arch: x86
# macOS Intel
- os: macos-13
# macOS Intel (使用 macos-15 替代已废弃的 macos-13)
- os: macos-15
platform: mac_x64
artifact_name: CheeseCloudTools-macOS-Intel
# macOS Apple Silicon
- os: macos-latest
platform: mac_arm64
artifact_name: CheeseCloudTools-macOS-AppleSilicon
# Linux 64位
- os: ubuntu-latest
platform: linux64
artifact_name: CheeseCloudTools-Linux-x64
runs-on: ${{ matrix.os }}
steps:
- name: 📥 检出代码
uses: actions/checkout@v4
- name: 🐍 设置 Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
architecture: ${{ matrix.python_arch || 'x64' }}
# Linux 需要安装 Qt 依赖
- name: 🐧 安装 Linux 依赖
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libxcb-xinerama0 \
libxcb-cursor0 \
libxkbcommon-x11-0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-shape0 \
libegl1 \
libgl1-mesa-glx \
libxcb-glx0 \
libglib2.0-0 \
libdbus-1-3
- name: 📦 安装依赖
run: |