Skip to content

Control a real USB-connected iPhone from Linux (no Mac, no paid developer account) and expose it to AI agents as MCP tools

CI:新增 macOS(Apple Silicon)编译和测试 (#12)

Qinghe Lic1dcc6b4d3f5
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 69189b2..35606a9 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -24,6 +24,19 @@ jobs:
- run: cargo clippy --workspace --all-targets --locked -- -D warnings
- run: cargo test --workspace --locked
+ # macOS(Apple Silicon)上能编译、测试通过。还没正式支持 macOS,先防止平台相关的代码混进来;
+ # 格式只和平台无关,上面已经查过
+ macos:
+ runs-on: macos-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: dtolnay/[email protected]
+ with:
+ components: clippy
+ - uses: Swatinem/rust-cache@v2
+ - run: cargo clippy --workspace --all-targets --locked -- -D warnings
+ - run: cargo test --workspace --locked
+
# Cargo.toml 声明的最低版本(rust-version)要真能编译
msrv:
runs-on: ubuntu-latest
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 7b71a67..6d0b6db 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -70,7 +70,7 @@ Notes:
## Pull requests
- Keep them focused; describe what changed and how you tested it (offline and/or which device).
-- CI must pass: format, clippy with `-D warnings`, tests, the MSRV check, gitleaks and the image build.
+- CI must pass: format, clippy with `-D warnings`, tests (on Linux and macOS), the MSRV check, gitleaks and the image build.
- User-visible changes get a line in [CHANGELOG.md](CHANGELOG.md) and [CHANGELOG.zh-CN.md](CHANGELOG.zh-CN.md) under *Unreleased* (a Chinese line is welcome but optional for outside contributors; maintainers add it before release).
## Documentation site