Skip to content

Commit 90fd652

Browse files
TrueNineclaude
andcommitted
fix(ci): remove obsolete plugin-runtime steps from release-cli workflow
The plugin-runtime.mjs entry point and embedded-runtime feature were removed as part of the Rust-owned runtime core rewrite, but the release-cli.yml workflow still tried to build and package the deleted file. This caused prepare-cli-runtime to fail with: ls: cannot access 'cli/dist/plugin-runtime.mjs': No such file Changes: - Remove the prepare-cli-runtime job entirely - Remove plugin-runtime artifact download/copy from build-binary - Remove obsolete --features tnmsc/embedded-runtime from cargo commands - Renumber remaining workflow steps Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 13fbdd2 commit 90fd652

1 file changed

Lines changed: 8 additions & 42 deletions

File tree

.github/workflows/release-cli.yml

Lines changed: 8 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -336,39 +336,12 @@ jobs:
336336
registry-url: ${{ env.NPM_REGISTRY_URL }}
337337
package-dir: mcp
338338

339-
# 5. 只构建一次 CLI runtime,供二进制矩阵复用
340-
prepare-cli-runtime:
341-
needs: preflight
342-
if: |
343-
needs.preflight.outputs.publish_cli == 'true' ||
344-
needs.preflight.outputs.gui_should_release == 'true'
345-
runs-on: ubuntu-24.04
346-
timeout-minutes: 30
347-
steps:
348-
- uses: actions/checkout@v6
349-
- uses: ./.github/actions/setup-node-pnpm
350-
- uses: ./.github/actions/setup-rust
351-
with:
352-
cache-key: cli-runtime
353-
- name: Build plugin-runtime
354-
shell: bash
355-
run: |
356-
pnpm -F @truenine/memory-sync-cli run build
357-
ls -la cli/dist/plugin-runtime.mjs
358-
- name: Upload plugin-runtime
359-
uses: actions/upload-artifact@v7
360-
with:
361-
name: cli-plugin-runtime
362-
path: cli/dist/plugin-runtime.mjs
363-
if-no-files-found: error
364-
365-
# 6. 构建 CLI 独立二进制(仅 artifact,不发 Release)
339+
# 5. 构建 CLI 独立二进制(仅 artifact,不发 Release)
366340
build-binary:
367-
needs: [preflight, publish-napi, prepare-cli-runtime]
341+
needs: [preflight, publish-napi]
368342
if: |
369343
(needs.preflight.outputs.publish_cli == 'true' || needs.preflight.outputs.gui_should_release == 'true') &&
370-
(needs.publish-napi.result == 'success' || needs.publish-napi.result == 'skipped') &&
371-
needs.prepare-cli-runtime.result == 'success'
344+
(needs.publish-napi.result == 'success' || needs.publish-napi.result == 'skipped')
372345
timeout-minutes: 60
373346
strategy:
374347
fail-fast: false
@@ -398,30 +371,24 @@ jobs:
398371
runs-on: ${{ matrix.platform }}
399372
steps:
400373
- uses: actions/checkout@v6
401-
- name: Download plugin-runtime
402-
uses: actions/download-artifact@v8
403-
with:
404-
name: cli-plugin-runtime
405-
path: cli/dist
406374
- uses: ./.github/actions/setup-rust
407375
with:
408376
targets: ${{ matrix.target }}
409377
cache-key: cli-${{ matrix.target }}
410378
- name: Setup cross-compile
411379
if: matrix.cross
412380
uses: ./.github/actions/setup-cross-compile
413-
- name: Build tnmsc binary (release, with embedded runtime)
414-
run: cargo build --release --target ${{ matrix.target }} -p tnmsc-cli-shell --features tnmsc/embedded-runtime
381+
- name: Build tnmsc binary (release)
382+
run: cargo build --release --target ${{ matrix.target }} -p tnmsc-cli-shell
415383
- name: Run tests (native only)
416384
if: ${{ !matrix.cross }}
417-
run: cargo test --release --target ${{ matrix.target }} -p tnmsc-cli-shell --features tnmsc/embedded-runtime
385+
run: cargo test --release --target ${{ matrix.target }} -p tnmsc-cli-shell
418386
- name: Package (unix)
419387
if: runner.os != 'Windows'
420388
shell: bash
421389
run: |
422390
mkdir -p staging
423391
cp target/${{ matrix.target }}/release/${{ matrix.binary }} staging/
424-
cp cli/dist/plugin-runtime.mjs staging/
425392
cd staging
426393
tar czf ../${{ matrix.archive }} *
427394
- name: Package (windows)
@@ -430,7 +397,6 @@ jobs:
430397
run: |
431398
New-Item -ItemType Directory -Force -Path staging
432399
Copy-Item "target/${{ matrix.target }}/release/${{ matrix.binary }}" staging/
433-
Copy-Item "cli/dist/plugin-runtime.mjs" staging/
434400
Compress-Archive -Path staging/* -DestinationPath ${{ matrix.archive }}
435401
- name: Upload artifact
436402
uses: actions/upload-artifact@v7
@@ -439,7 +405,7 @@ jobs:
439405
path: ${{ matrix.archive }}
440406
if-no-files-found: error
441407

442-
# 7. 构建 GUI — 三平台并行(fail-fast: 任一失败则全部取消)
408+
# 6. 构建 GUI — 三平台并行(fail-fast: 任一失败则全部取消)
443409
build-gui-all:
444410
needs: [preflight]
445411
if: needs.preflight.outputs.gui_should_release == 'true'
@@ -448,7 +414,7 @@ jobs:
448414
version: ${{ needs.preflight.outputs.gui_version }}
449415
secrets: inherit
450416

451-
# 8. 收集三平台产物,创建 GitHub Release + tag
417+
# 7. 收集三平台产物,创建 GitHub Release + tag
452418
release-gui-collect:
453419
needs: [preflight, build-gui-all, build-binary]
454420
if: needs.preflight.outputs.gui_should_release == 'true'

0 commit comments

Comments
 (0)