fix(ci): correct ns7zip build-command and artifact-source

build_plugin.py is a dispatcher: it auto-detects host/toolset and
forwards extra args to the per-version script, which rejected
--final/--dist-dir. Both the Windows (legacy 2601_vs2026) and Linux
build scripts copy nsis7z.dll into <repo>/plugins/{x86-ansi,
x86-unicode,amd64-unicode}, not dist.

- build-command: just `python build_plugin.py` (python3 on Linux —
  Ubuntu 24.04 has no `python`).
- artifact-source: 'plugins' (fixes the "dist missing" failure too).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Simone
2026-05-17 20:27:14 +02:00
parent 97ec820ebb
commit b2cfe85f88
+7 -2
View File
@@ -27,8 +27,13 @@ jobs:
steps:
- uses: https://gitea.emulab.it/Simone/local-ci-cd-system/.gitea/actions/local-ci-build@main
with:
build-command: 'python build_plugin.py --final --dist-dir dist'
artifact-source: 'dist'
# build_plugin.py auto-detects host/toolset and builds all
# configs by default; --final/--dist-dir do not exist (they were
# forwarded to the per-version script and rejected). Output DLLs
# are copied to <repo>/plugins/{x86-ansi,x86-unicode,amd64-unicode}.
# Ubuntu 24.04 has no `python`, use `python3` on the Linux leg.
build-command: ${{ matrix.target == 'linux' && 'python3 build_plugin.py' || 'python build_plugin.py' }}
artifact-source: 'plugins'
submodules: 'true'
guest-os: ${{ matrix.target == 'linux' && 'Linux' || 'Windows' }}
# repo-url uses the host SSH alias `gitea-ci` (~/.ssh/config),