From d9311839ad51c49e00fc3d2b04484cc3c33b4b70 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 2 Oct 2026 15:49:35 +0300 Subject: [PATCH] ci: reuse prepared Windows launcher test binaries --- .github/workflows/windows-installer.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows-installer.yml b/.github/workflows/windows-installer.yml index 212a961e13..80d80aa9d4 100644 --- a/.github/workflows/windows-installer.yml +++ b/.github/workflows/windows-installer.yml @@ -82,17 +82,33 @@ jobs: shell: powershell run: Add-Content -Path $env:GITHUB_PATH -Value "C:\Program Files (x86)\NSIS" + - name: Build Windows launcher tests + shell: bash + env: + NEOMACS_BUILD_PROFILE: release + run: | + cargo nextest list -p neomacs --cargo-profile release --features windows-tools --test windows_launcher \ + --list-type binaries-only --message-format json > "$RUNNER_TEMP/launcher-binaries.json" + cargo metadata --format-version 1 --features windows-tools > "$RUNNER_TEMP/launcher-cargo.json" + - name: Run fresh build shell: bash timeout-minutes: 150 run: | cargo xtask fresh-build --release + sha256sum target/release/neomacs.exe target/release/neomacs.pdump \ + target/release/runneomacs.exe target/release/cmdproxy.exe > "$RUNNER_TEMP/launcher-runtime.sha256" - name: Test Windows launcher shell: bash env: NEOMACS_BUILD_PROFILE: release - run: cargo nextest run -p neomacs --cargo-profile release --features windows-tools --test windows_launcher + run: | + # fresh-build patches the editor and generates its matching dump. + # Reuse the compiled tests: another Cargo build can undo that patch. + cargo nextest run --binaries-metadata "$RUNNER_TEMP/launcher-binaries.json" \ + --cargo-metadata "$RUNNER_TEMP/launcher-cargo.json" + sha256sum --check "$RUNNER_TEMP/launcher-runtime.sha256" - name: GUI smoke (launch, frame snapshot, PNG readback) shell: bash