From b2cfe85f880851b82f4f1f7ea13a86f03668834d Mon Sep 17 00:00:00 2001 From: Simone Date: Sun, 17 May 2026 20:27:14 +0200 Subject: [PATCH] fix(ci): correct ns7zip build-command and artifact-source MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 /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 --- .gitea/workflows/build-ns7zip.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-ns7zip.yml b/.gitea/workflows/build-ns7zip.yml index 55b67ac..7d0e6d4 100644 --- a/.gitea/workflows/build-ns7zip.yml +++ b/.gitea/workflows/build-ns7zip.yml @@ -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 /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),