精简使用文档并记录审查结果与 GMP 调度边界 #45
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: ci-macos | |
| # macOS 使用 arm64 runner,与已发布工具载荷一致 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-macos-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| # 安装脚本及发布版本均固定,包索引在工具安装前更新 | |
| XLINGS_VERSION: v2026.8.27.5 | |
| XLINGS_NON_INTERACTIVE: '1' | |
| jobs: | |
| build-test: | |
| name: build + test (macos arm64) | |
| runs-on: macos-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install xlings | |
| run: | | |
| curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/3d2a24363c746c618d43f3793a7b52ef1aa66856/tools/other/quick_install.sh \ | |
| | bash -s "$XLINGS_VERSION" | |
| echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH" | |
| - name: Install project tools (.xlings.json → mcpp) | |
| run: | | |
| xlings update | |
| xlings install -y | |
| mcpp --version | |
| - name: Qualify library | |
| run: | | |
| scripts/qualify-command.sh mcpp build --profile dev --strict --cache=off | |
| scripts/qualify-command.sh mcpp test --profile dev --strict --cache=off | |
| scripts/qualify-command.sh mcpp build --profile release --strict --cache=off | |
| scripts/qualify-command.sh mcpp test --profile release --strict --cache=off | |
| - name: Qualify example | |
| run: | | |
| cd examples/basic | |
| ../../scripts/qualify-command.sh mcpp build --profile dev --strict --cache=off | |
| ../../scripts/qualify-command.sh mcpp run | |
| ../../scripts/qualify-command.sh mcpp build --profile release --strict --cache=off |