File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,20 +25,20 @@ jobs:
2525 "/tmp/xlings-${XLINGS_VERSION}-linux-x86_64/subos/default/bin/xlings" self install
2626 echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
2727
28- # Resolves `.xlings.json` → installs mcpp@0.0.3 (and any other
28+ # Resolves `.xlings.json` → installs mcpp (and any other
2929 # workspace tools listed). Idempotent on cache hits.
3030 - name : Install workspace tools (.xlings.json)
3131 run : xlings install -y
3232
3333 # Cache mcpp's self-bootstrapped sandbox: musl-gcc + binutils +
3434 # glibc + ninja + patchelf, plus the cloned mcpp-index. ~800 MB
35- # one-time download — reused across runs since mcpp 0.0.8 's
35+ # one-time download — reused across runs since mcpp 0.0.11 's
3636 # toolchain set is version-pinned.
3737 - name : Cache mcpp sandbox
3838 uses : actions/cache@v4
3939 with :
40- path : ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.8 /registry
41- key : mcpp-sandbox-${{ runner.os }}-mcpp0.0.8
40+ path : ~/.xlings/data/xpkgs/xim-x-mcpp/0.0.11 /registry
41+ key : mcpp-sandbox-${{ runner.os }}-mcpp0.0.11
4242
4343 - name : Build with mcpp
4444 run : mcpp build
Original file line number Diff line number Diff line change 11{
22 "workspace" : {
3- "mcpp" : { "linux" : " 0.0.8 " }
3+ "mcpp" : { "linux" : " 0.0.11 " }
44 }
55}
Original file line number Diff line number Diff line change @@ -28,6 +28,34 @@ auto resp = client.send(mcpplibs::tinyhttps::HttpRequest::post(
2828));
2929```
3030
31+ ## 使用 mcpp 构建
32+
33+ ### 添加依赖
34+
35+ ``` bash
36+ mcpp add tinyhttps@0.2.2
37+ ```
38+
39+ 或在 ` mcpp.toml ` 中手动添加:
40+
41+ ``` toml
42+ [dependencies ]
43+ tinyhttps = " 0.2.2"
44+ ```
45+
46+ ### 构建
47+
48+ ``` bash
49+ mcpp build
50+ ```
51+
52+ ### 代码示例
53+
54+ ``` cpp
55+ import mcpplibs.tinyhttps;
56+ // ... usage example
57+ ```
58+
3159## License
3260
3361Apache-2.0
You can’t perform that action at this time.
0 commit comments