Skip to content

Commit 53b7e3b

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 0b8caaf commit 53b7e3b

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
@@ -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

.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
@@ -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

3361
Apache-2.0

0 commit comments

Comments
 (0)