Skip to content

Commit 1b6dc66

Browse files
committed
chore: bump mcpp to 0.0.11 + add mcpp usage to README
- .xlings.json: mcpp 0.0.8 → 0.0.11 - CI: mcpp 0.0.11 - README: add mcpp build/usage section
1 parent c3d59b9 commit 1b6dc66

3 files changed

Lines changed: 33 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ jobs:
2323
"/tmp/xlings-${XLINGS_VERSION}-linux-x86_64/subos/default/bin/xlings" self install
2424
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
2525
26-
- name: Install workspace tools (.xlings.json → mcpp 0.0.8)
26+
- name: Install workspace tools (.xlings.json → mcpp 0.0.11)
2727
run: xlings install -y
2828

2929
# Cache mcpp's self-bootstrapped sandbox (musl-gcc + binutils +
3030
# glibc + ninja + patchelf, ~800 MB). Toolchain set is pinned by
31-
# mcpp 0.0.8, so a fixed key suffices.
31+
# mcpp 0.0.11, so a fixed key suffices.
3232
- name: Cache mcpp sandbox
3333
uses: actions/cache@v4
3434
with:
35-
path: ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.8/registry
36-
key: mcpp-sandbox-${{ runner.os }}-mcpp0.0.8
35+
path: ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.11/registry
36+
key: mcpp-sandbox-${{ runner.os }}-mcpp0.0.11
3737

3838
- name: Build with mcpp
3939
run: mcpp build

.xlings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"workspace": {
3-
"mcpp": { "linux": "0.0.8" }
3+
"mcpp": { "linux": "0.0.11" }
44
}
55
}

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,34 @@ target("demo")
9191

9292
See [docs/en/getting-started.md](docs/en/getting-started.md), [docs/en/providers.md](docs/en/providers.md), and [docs/en/README.md](docs/en/README.md) for more setup and readiness detail.
9393

94+
## 使用 mcpp 构建
95+
96+
### 添加依赖
97+
98+
```bash
99+
mcpp add llmapi@0.2.5
100+
```
101+
102+
或在 `mcpp.toml` 中手动添加:
103+
104+
```toml
105+
[dependencies]
106+
llmapi = "0.2.5"
107+
```
108+
109+
### 构建
110+
111+
```bash
112+
mcpp build
113+
```
114+
115+
### 代码示例
116+
117+
```cpp
118+
import mcpplibs.llmapi;
119+
// ... usage example
120+
```
121+
94122
## License
95123

96124
Apache-2.0 - see [LICENSE](LICENSE)

0 commit comments

Comments
 (0)