Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
02334f6
fix: a resource script compiles with its package's include_dirs expan…
Sunrisepeak Nov 20, 2026
e941e6c
fix: the resource include list is a function of its own (step13_windo…
Sunrisepeak Nov 20, 2026
94e8193
docs: the test and CI design for mtest, mcpp's test system and CI (mc…
Sunrisepeak Nov 20, 2026
d82e2d9
fix: a resource script's include dirs are expanded as the root manife…
Sunrisepeak Nov 20, 2026
7ae560a
fix: a package's instance is a function of its configuration, not of …
Sunrisepeak Nov 20, 2026
2277ffc
feat: a test and a build share the machine's budget of slots and a me…
Sunrisepeak Nov 20, 2026
25700dd
feat: a run records its machine, each case's processor time, steps, i…
Sunrisepeak Nov 20, 2026
682afda
feat: a build records each edge it ran with its processor time and la…
Sunrisepeak Nov 20, 2026
8bf0bb9
chore: mcpplibs.mtest 0.11.0 and mcpplibs.os 0.4.7 throughout, the sk…
Sunrisepeak Nov 20, 2026
f7d3a16
feat: the dependencies from the store and git compile with the line t…
Sunrisepeak Nov 20, 2026
44f8275
feat: a package whose sources are named runs its build program in the…
Sunrisepeak Nov 20, 2026
aa9af7a
test: a program run through wine returns when wine's services have ended
Sunrisepeak Nov 20, 2026
31dbf2b
feat: a compile whose command and read files hold an earlier compile'…
Sunrisepeak Nov 20, 2026
36b98a0
feat: the split schedule's units are placed from the unit cache too; …
Sunrisepeak Nov 20, 2026
47cefb2
fix: a compile the executor did not keep leaves no producer key besid…
Sunrisepeak Nov 20, 2026
fbc2e4c
mcpp emit surface; an invocation records the items it used (design 20…
Sunrisepeak Nov 20, 2026
41e79b4
mcpp test serves run fixtures (SPEC-017 P11, design 2026-11-20 §5.10)
Sunrisepeak Nov 20, 2026
e71fa6d
--since: a header affects the tests built from the units that read it…
Sunrisepeak Nov 20, 2026
7c618f2
SPEC-004 §9 items 17 to 20; SPEC-017 O6 and the surface; features for…
Sunrisepeak Nov 20, 2026
e10d52f
The test kit: surface items, the shared home as a run fixture, homes …
Sunrisepeak Nov 20, 2026
6e9ff7f
docs: memory_threshold, dependency_debug, the run's records, one budg…
Sunrisepeak Nov 20, 2026
e397c96
The dependency_debug comment is shorter: toolchain.cpp stays within 2…
Sunrisepeak Nov 20, 2026
9d6806a
CI: a tree is verified once, and a release promotes the archives a ru…
Sunrisepeak Nov 20, 2026
16cde79
mtest 0.11.1 throughout, and CI's engine with it (a command an e2e ca…
Sunrisepeak Nov 20, 2026
4d4c2fc
design 2026-11-20 §14: the record of the implementation -- repositori…
Sunrisepeak Nov 20, 2026
0e10735
design 2026-11-20 §14: the coverage tables stay with check_e2e_covera…
Sunrisepeak Nov 20, 2026
0aef472
docs/08: the downstream action project-test
Sunrisepeak Nov 20, 2026
bb94dab
The build record states an edge that copied a unit of a package the c…
Sunrisepeak Nov 20, 2026
c14b434
CI: a consumer of this commit's mcpp reads the current index's recipe…
Sunrisepeak Nov 20, 2026
29f7ddf
design 2026-11-20 §14: the index the fix needs, and the record's stag…
Sunrisepeak Nov 20, 2026
f81f153
2026.11.21.1
Sunrisepeak Nov 20, 2026
15e4cfa
CI: the macOS e2e suite runs on the newest image at a checkpoint (ful…
Sunrisepeak Nov 20, 2026
268cbf8
CI: e2e-cases prints the run's records when a program fails beside it…
Sunrisepeak Nov 20, 2026
beb7243
mcpp test: a worker that waits for a slot gives up once no test is le…
Sunrisepeak Nov 21, 2026
1705f22
The unit cache records what a Clang compile read: its depfile names t…
Sunrisepeak Nov 21, 2026
159edcc
A build program run in a packing pass runs in the project: its output…
Sunrisepeak Nov 21, 2026
d91550e
memory_threshold enters the grouping key of a plan's members, as jobs…
Sunrisepeak Nov 21, 2026
efc91d1
The kit initializes a case's inherited home with the real xlings; the…
Sunrisepeak Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
870 changes: 870 additions & 0 deletions .agents/docs/2026-11-20-test-architecture-upgrade-design.md

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion .agents/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ superseded_by: 2026-09-07-....md # when status is superseded
---
```

367 records.
368 records.

## By subject

Expand Down Expand Up @@ -173,6 +173,10 @@ Records that declare one. Everything else is listed by date below.
- [SDK toolchains, the payload/engine seam, and openkal across iOS, Android and Web](2026-09-11-sdk-toolchains-and-ios-local-verification.md) — landed
- [Where a platform's knowledge belongs: iOS, Android and Web across the engine, the index and the plugins](2026-09-11-platform-targets-design-review.md) — active

### test

- [生态的测试与 CI 方案:mtest 的框架与运行控制、mcpp 自身的测试系统、CI 的形态(mcpp#986、#976、#927、#802)](2026-11-20-test-architecture-upgrade-design.md) — active

### toolchain

- [目标基座与执行宿主:sysroot 的通用模型、运行器契约、自备输入,以及同批的发布产物路径(#832)](2026-10-23-target-base-and-execution-host-design.md) — landed
Expand Down Expand Up @@ -206,6 +210,7 @@ Records that declare one. Everything else is listed by date below.

### 2026-11

- [生态的测试与 CI 方案:mtest 的框架与运行控制、mcpp 自身的测试系统、CI 的形态(mcpp#986、#976、#927、#802)](2026-11-20-test-architecture-upgrade-design.md) — active
- [程序起点模型:启动者、两层入口与 `main` 的三种陈述(mcpp#845、mcpp#981)](2026-11-20-program-start-model.md) — landed
- [生态规则收敛方案:2026.11.18.1 之后十个 issue 的五类成因、七项决定与实施范围](2026-11-19-ecosystem-rule-convergence-design.md) — landed
- [第二部分之后的补充方案:带修正的 ninja、模块重编译的级联、工作区发布与本轮遗留项](2026-11-17-ninja-cascade-publish-supplement-design.md) — active
Expand Down
13 changes: 13 additions & 0 deletions .agents/skills/mcpp-contributing/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,19 @@ E2E 并不保证完全离线:部分脚本需要工具链、索引或 capabilit
按 CI 等价方式设置 `MCPP_HOME`、镜像和其他 capability 后再运行;不要让缓存命中
或空 workspace 选择冒充行为覆盖。

C++ 端到端用例的写法(`tests/support`,设计 2026-11-20):

- 等待被测程序给出的事件(一行输出、一个文件、退出),不等待时间;`sleep_for` 与 shell `sleep <n>` 的次数只减不增
(`.github/tools/check_waits.sh`、`waits.baseline`)。只为改变修改时间的等待改用 `s::touch(file)`。
- 断言只在其 home 不被别人改写时成立的用例(回放的构建、快速路径)调用 `s::own_home()`,在自己的 home 中运行 mcpp,
而不持有 `machine`;改写 home 配置的用例写自己 home 的 `config.toml`,不写共享 home 的。
- 继承的 home(`home::inherited`、`_inherit_toolchain.sh`)以用户的 home 为 upstream,不链接其载荷,不复制 subos。
- 每个 E2E 组带 `s::home_fixture`:共享的 home 是运行夹具,其填充记在夹具上。
- 形式本身是契约的输出(`--protocol-version`、`emit surface`)以 golden 文件整段比较;改变它的拉取请求以
`MTEST_GOLDEN=update` 更新文件,审阅读取更新给出的改动。
- 程序写出的 `warning:` 与 `error:` 行由用例以 `e2e::expect_diagnostic` 声明;kit 以 `report` 方式统计未声明的行。
- 不变量(无改动的重建、第二个工程)以构建记录(`MCPP_BUILD_RECORD`)计数,以指标与界限陈述。

### 4. 提交 PR

**提交信息前缀**:`feat:` / `fix:` / `refactor:` / `test:` / `docs:` / `chore:`
Expand Down
26 changes: 18 additions & 8 deletions .agents/skills/mcpp-release/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,28 +108,38 @@ gh pr create --title "chore: bump version to $NEW_VERSION" --body "..."
然后推送(标签在 push 启动运行时读取)。这样 PR 自己的运行就是全集,结果在 PR 的检查中可见。不要以
`gh workflow run ci.yml --ref <分支>` 另开一次运行,也不要取消 PR 的运行(见 mcpp-contributing 第 5 节)。

全集运行通过时留下 `verified-<tree>`(设计 2026-11-20 §5.22),它的 `release-form` 作业留下四个发布归档。
版本号的两处、CHANGELOG 与文档中 `@NEXT@` 的替换都在这次运行之前提交:之后的任何改动都改变树,标记随之失效。
合入(squash)之后 main 的树与被验证的树相同,main 的运行只登记、保存缓存,不再运行测试,**不取消它**。
合入与打 tag 之间 main 移动过时,发布照常构建,摘要写明原因。

### 3. 创建并推送 tag

```bash
git tag "v$NEW_VERSION"
git push origin "v$NEW_VERSION"
```

Tag push 会自动触发 `release.yml` workflow。
Tag push 会自动触发 `release.yml` workflow。它的 `find` 作业由 tag 得到树:有运行验证过这棵树、且仍保留
四个 `release-*` 归档(七天)时,`promote` 提升它们(核对 `.sha256` 与 Linux 程序报告的版本),不再构建;
否则运行 `release-build.yml` 的四个构建。运行摘要写明 "Promoted" 或 "Built" 及原因。

### 4. 监控 Release CI

Release workflow 的四个平台构建**同时开始**,各自把归档留作 artifact;`create-release`
在四个构建都通过后一次创建带全部归档的 GitHub release(设计 2026-11-14):
Release workflow 先由 `find` 决定提升还是构建。构建时四个平台构建(`release-build.yml`)**同时开始**,
各自把归档留作 artifact;`create-release` 在四个构建或 `promote` 通过后一次创建带全部归档的 GitHub
release(设计 2026-11-14、2026-11-20 §5.22):

| Job | 平台 | 产物 | 依赖 |
|-----|------|------|------|
| `canaries` | — | 生态项目(xlings、mcppls)用候选版本构建 | 仅手动发布且勾选 `canaries` 时运行 |
| `build-release` | Linux x86_64 | `mcpp-X.Y.Z-linux-x86_64.tar.gz`、源码包、`mcpp.lua`、`install.sh` | 无 |
| `build-linux-aarch64` | Linux aarch64(交叉) | `mcpp-X.Y.Z-linux-aarch64.tar.gz` | 无 |
| `build-macos` | macOS ARM64 | `mcpp-X.Y.Z-macosx-arm64.tar.gz` | 无 |
| `build-windows` | Windows x86_64 | `mcpp-X.Y.Z-windows-x86_64.zip` | 无 |
| `create-release` | — | GitHub release、覆盖全部归档的 `SHA256SUMS` | 四个构建(及运行时的 canaries) |
| `find` | — | tag、提交、树与验证它的运行 | 无 |
| `promote` | — | 被验证运行的四个归档,作为 `release-promoted` | `find` 找到运行时 |
| `build-release` | Linux x86_64 | `mcpp-X.Y.Z-linux-x86_64.tar.gz`、源码包、`mcpp.lua`、`install.sh` | `find` 未找到运行时(`build`) |
| `build-linux-aarch64` | Linux aarch64(交叉) | `mcpp-X.Y.Z-linux-aarch64.tar.gz` | `find` 未找到运行时(`build`) |
| `build-macos` | macOS ARM64 | `mcpp-X.Y.Z-macosx-arm64.tar.gz` | `find` 未找到运行时(`build`) |
| `build-windows` | Windows x86_64 | `mcpp-X.Y.Z-windows-x86_64.zip` | `find` 未找到运行时(`build`) |
| `create-release` | — | GitHub release、覆盖全部归档的 `SHA256SUMS` | 四个构建或 `promote`(及运行时的 canaries) |
| `release-manifest` | — | `mcpp-release.json` | `create-release` |
| `publish-ecosystem` | — | 镜像到 xlings-res 双端 + 开索引 bump PR | `release-manifest` |

Expand Down
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
tests/fixtures/openkal-hosted-threads/src/main.cpp.in text eol=lf
# The rows' snapshot is compared line by line with what the engine answers, in its own bytes.
tests/fixtures/target-rows.snapshot text eol=lf
# The golden outputs are compared whole with what mcpp writes, in its own bytes (tests/e2e/cli/golden.cpp).
tests/e2e/golden/* text eol=lf
12 changes: 10 additions & 2 deletions .github/actions/e2e-cases/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ runs:
HOST: ${{ inputs.host }}
run: |
set -euo pipefail
run=$(gh run list -R "$GITHUB_REPOSITORY" --workflow ci.yml --branch main --status success --limit 1 \
--json databaseId -q '.[0].databaseId')
run=$(bash .github/tools/main_run.sh) # main's, or the run it registered (design 2026-11-20 §5.22)
[ -n "$run" ] || { echo "::error::no successful CI run of main holds the tests"; exit 1; }
rm -rf "$RUNNER_TEMP/mcpp-tests"
gh run download "$run" -R "$GITHUB_REPOSITORY" -n "mcpp-tests-$HOST" -D "$RUNNER_TEMP/mcpp-tests"
Expand Down Expand Up @@ -89,4 +88,13 @@ runs:
for c in "${cases[@]}"; do
tr -d '\r' < "$log" | grep -qxF " ok $c" || { echo "::error::$c did not pass (a skip or a failure; its line above)"; status=1; }
done
# A program can fail beside cases that passed (its exit status, a fixture, a case it did
# not report): the run's records say which, and the job keeps no store.
if [ "$status" != 0 ]; then
run=$(ls -t target/mtest/runs 2>/dev/null | head -1)
for f in programs cases fixtures; do
[ -n "$run" ] && [ -f "target/mtest/runs/$run/$f.ndjson" ] || continue
echo "::group::the run's $f.ndjson"; cat "target/mtest/runs/$run/$f.ndjson"; echo "::endgroup::"
done
fi
exit "$status"
3 changes: 1 addition & 2 deletions .github/actions/e2e-mtest/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ runs:
HOST: ${{ inputs.host }}
run: |
set -euo pipefail
run=$(gh run list -R "$GITHUB_REPOSITORY" --workflow ci.yml --branch main --status success --limit 1 \
--json databaseId -q '.[0].databaseId' 2>/dev/null || true)
run=$(bash .github/tools/main_run.sh) # main's, or the run it registered (design 2026-11-20 §5.22)
if [ -z "$run" ]; then echo "no successful run of main: the suite is divided by count"; exit 0; fi
rm -rf "$RUNNER_TEMP/e2e-stores"
if ! gh run download "$run" -R "$GITHUB_REPOSITORY" -p "e2e-store-$HOST-*" -D "$RUNNER_TEMP/e2e-stores" 2>/dev/null; then
Expand Down
26 changes: 24 additions & 2 deletions .github/actions/mcpp-unit/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ inputs:
description: the tests to run, as `mcpp test` patterns separated by spaces; empty for all
required: false
default: ''
cases:
description: the cases to run, one `mcpp test --case` pattern per line; empty for all
required: false
default: ''
jitter:
description: >
the most a contention point waits, in milliseconds (MTEST_JITTER, SPEC-017 O12; design
2026-11-20 §5.19), with `jitter-seed`; empty for none
required: false
default: ''
jitter-seed:
description: the seed of the jitter's waits (MTEST_JITTER_SEED)
required: false
default: ''
mcpp:
description: the mcpp that runs the tests; empty for this commit's (MCPP_FRESH)
required: false
Expand Down Expand Up @@ -70,8 +84,7 @@ runs:
run: |
set -uo pipefail
py=python3; command -v python3 >/dev/null 2>&1 || py=python
run=$(gh run list -R "$GITHUB_REPOSITORY" --workflow ci.yml --branch main --status success --limit 1 \
--json databaseId -q '.[0].databaseId' 2>/dev/null || true)
run=$(bash .github/tools/main_run.sh) # main's, or the run it registered (design 2026-11-20 §5.22)
if [ -z "$run" ]; then echo "no successful run of main: the tests run in the order they are listed"; exit 0; fi
d="$RUNNER_TEMP/unit-history"
rm -rf "$d"
Expand Down Expand Up @@ -114,6 +127,9 @@ runs:
PATTERNS: ${{ inputs.patterns }}
TIMEOUT: ${{ inputs.timeout }}
RUNS: ${{ inputs.mcpp }}
CASES: ${{ inputs.cases }}
JITTER: ${{ inputs.jitter }}
JITTER_SEED: ${{ inputs.jitter-seed }}
run: |
set -euo pipefail
args=(test --timeout "$TIMEOUT" --split auto)
Expand All @@ -137,6 +153,12 @@ runs:
[ -z "$SINCE" ] || args+=(--since "$SINCE")
# shellcheck disable=SC2206 -- the patterns are words
[ -z "$PATTERNS" ] || args+=($PATTERNS)
while IFS= read -r c; do [ -z "$c" ] || args+=(--case "$c"); done <<< "$CASES"
fi
# A search for an order defect, never a verdict of its own (design 2026-11-20 §5.19).
if [ -n "$JITTER" ]; then
export MTEST_JITTER="$JITTER" MTEST_JITTER_SEED="${JITTER_SEED:-0}"
echo "jitter: up to $JITTER ms, seed $MTEST_JITTER_SEED"
fi
echo "mcpp ${args[*]}"
"${RUNS:-$MCPP_FRESH}" "${args[@]}"
Expand Down
128 changes: 128 additions & 0 deletions .github/actions/project-test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
name: mcpp project test
description: >
The tests of a project built with mcpp, as a downstream repository's CI runs them (design
2026-11-20 §7.4): the mcpp the project pins, its home restored by the project's identity (read
only on a pull request, saved by a push to the default branch), `mcpp test`, the run's store
kept as an artifact, and a summary of the run: its result, its slowest cases and the slowest
edges of its builds (SPEC-017 B4).

Use: `- uses: mcpp-community/mcpp/.github/actions/project-test@main` after `actions/checkout`.

inputs:
mcpp:
description: >
the mcpp version to install; empty for the one the project's .xlings.json names, else the
newest release
required: false
default: ''
args:
description: the arguments of `mcpp test`, as words (`-p member --profile release`)
required: false
default: ''
home-key:
description: >
what identifies the project's home beside the system and the mcpp version (its manifests and
lock, by default)
required: false
default: ''
name:
description: the name of the store's artifact
required: false
default: mcpp-test-store

runs:
using: composite
steps:
- name: The mcpp the project pins
id: version
shell: bash
env:
WANTED: ${{ inputs.mcpp }}
run: |
set -euo pipefail
v="$WANTED"
if [ -z "$v" ] && [ -f .xlings.json ]; then
v=$(sed -n 's/.*"mcpp": *"\([^"]*\)".*/\1/p' .xlings.json | head -1)
fi
echo "version=${v:-latest}" >> "$GITHUB_OUTPUT"
echo "mcpp ${v:-latest}"

# The home is the tests' run fixture (design 2026-11-20 §5.10): restored by its identity, the
# system, the mcpp version and the project's manifests. A pull request reads it and adds
# nothing; a push to the default branch saves what its run filled.
- name: Restore the project's home
id: home
uses: actions/cache/restore@v4
with:
path: ~/.mcpp
key: mcpp-project-home-${{ runner.os }}-${{ runner.arch }}-${{ steps.version.outputs.version }}-${{ inputs.home-key || hashFiles('**/mcpp.toml', '**/mcpp.lock', '.xlings.json') }}
restore-keys: |
mcpp-project-home-${{ runner.os }}-${{ runner.arch }}-${{ steps.version.outputs.version }}-

- name: Install mcpp
shell: bash
env:
VERSION: ${{ steps.version.outputs.version }}
XLINGS_NON_INTERACTIVE: '1'
run: |
set -euo pipefail
if ! command -v xlings > /dev/null 2>&1; then
curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/main/tools/other/quick_install.sh | bash
echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.xlings/subos/current/bin:$PATH"
fi
spec=mcpp; [ "$VERSION" = latest ] || spec="mcpp@$VERSION"
for attempt in 1 2 3; do
xlings update > /dev/null 2>&1 || true
if xlings install "$spec" -y -g; then break; fi
[ "$attempt" = 3 ] && { echo "::error::$spec could not be installed"; exit 1; }
sleep 30
done
mcpp --version

- name: mcpp test
shell: bash
env:
ARGS: ${{ inputs.args }}
run: |
set -euo pipefail
# shellcheck disable=SC2086 -- the arguments are words
mcpp test $ARGS

- name: Save the project's home
if: ${{ always() && github.event_name == 'push' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && steps.home.outputs.cache-hit != 'true' }}
uses: actions/cache/save@v4
with:
path: ~/.mcpp
key: mcpp-project-home-${{ runner.os }}-${{ runner.arch }}-${{ steps.version.outputs.version }}-${{ inputs.home-key || hashFiles('**/mcpp.toml', '**/mcpp.lock', '.xlings.json') }}

- name: Keep the run's store
if: always()
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.name }}
path: target/mtest
if-no-files-found: ignore
include-hidden-files: true
retention-days: 14

- name: The run in the summary
if: always()
shell: bash
run: |
set -uo pipefail
run=$(ls -t target/mtest/runs 2>/dev/null | head -1)
[ -n "$run" ] || { echo "no run was kept" >> "$GITHUB_STEP_SUMMARY"; exit 0; }
d="target/mtest/runs/$run"
{
echo "## mcpp test"
jq -r '"\(.status // "?"): \(.counts // {} | to_entries | map("\(.value) \(.key)") | join(", ")) in \((.ms // 0) / 1000 | floor) s on \(.machine // "?")"' "$d/run.json" 2>/dev/null
echo
echo "| slowest case | ms |"; echo "|---|---|"
jq -rs 'sort_by(-(.ms // 0)) | .[:10][] | "| \(.program)/\(.id) | \(.ms // 0 | floor) |"' "$d/cases.ndjson" 2>/dev/null
if [ -s "$d/builds.ndjson" ]; then
echo
echo "| slowest edge | package | ms |"; echo "|---|---|---|"
jq -rs 'map(select(.output)) | sort_by(-(.ms // 0)) | .[:10][] | "| \(.output) | \(.package) | \(.ms // 0 | floor) |"' "$d/builds.ndjson"
fi
} >> "$GITHUB_STEP_SUMMARY"
19 changes: 18 additions & 1 deletion .github/actions/use-built-mcpp/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,33 @@ inputs:
description: The mirror xlings and mcpp use in this job.
required: false
default: GLOBAL
form:
description: >
`host`: the binary of build.yml (`mcpp-built-<host>`). `release`: the
program of the archive release-build.yml kept for the host
(`release-<platform>`), as a release ships it -- ci.yml's `full` tier
tests it, so that a release promotes what a run tested (design
2026-11-20 §5.22).
required: false
default: host

runs:
using: composite
steps:
- name: Download this commit's mcpp (${{ inputs.host }})
if: ${{ inputs.form != 'release' }}
uses: actions/download-artifact@v4
with:
name: mcpp-built-${{ inputs.host }}
path: ${{ runner.temp }}/mcpp-built

- name: Download this commit's release archive (${{ inputs.host }})
if: ${{ inputs.form == 'release' }}
uses: actions/download-artifact@v4
with:
name: release-${{ inputs.host == 'macos-arm64' && 'macosx-arm64' || inputs.host }}
path: ${{ runner.temp }}/mcpp-release

- name: Use this commit's mcpp
shell: bash
run: bash "$GITHUB_ACTION_PATH/use.sh" "${{ inputs.host }}" "${{ inputs.mirror }}"
run: bash "$GITHUB_ACTION_PATH/use.sh" "${{ inputs.host }}" "${{ inputs.mirror }}" "${{ inputs.form }}"
Loading
Loading