APT Installation Test #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: APT Installation Test | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| test-apt-install: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Install cx-terminal | |
| run: | | |
| curl -fsSL https://repo.cxlinux.com/key.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/cxlinux.gpg | |
| echo "deb [signed-by=/etc/apt/keyrings/cxlinux.gpg] https://repo.cxlinux.com/apt stable main" | sudo tee /etc/apt/sources.list.d/cxlinux.list | |
| sudo apt-get update | |
| sudo apt-get install -y cx-terminal | |
| - name: Test Binary | |
| run: | | |
| echo "=== 基础测试 ===" | |
| which cx-terminal | |
| cx-terminal --version | |
| echo "" | |
| echo "=== 帮助信息 ===" | |
| cx-terminal --help 2>&1 | head -30 || true | |
| echo "" | |
| echo "=== 配置测试 ===" | |
| # 创建配置目录 | |
| mkdir -p ~/.config/cx-terminal | |
| echo "" | |
| echo "=== 启动测试 (headless) ===" | |
| # 使用 xvfb 虚拟显示器测试启动 | |
| sudo apt-get install -y xvfb | |
| timeout 5 xvfb-run cx-terminal --help || echo "GUI 启动测试完成" | |
| echo "" | |
| echo "=== 文件检查 ===" | |
| ls -la /usr/bin/cx-terminal | |
| ls -la /usr/share/applications/ | grep -i cx || true | |
| ldd /usr/bin/cx-terminal | head -10 | |
| echo "" | |
| echo "=== 测试完成 ✅ ===" |