From eb083a0005873b5edf5770f43986a9bd3656cf24 Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Sat, 29 Aug 2026 18:58:31 +0200 Subject: [PATCH] test: build DIP passthrough isolation --- .../workflows/test-v37a-dip-passthrough.yml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/test-v37a-dip-passthrough.yml diff --git a/.github/workflows/test-v37a-dip-passthrough.yml b/.github/workflows/test-v37a-dip-passthrough.yml new file mode 100644 index 0000000..357309b --- /dev/null +++ b/.github/workflows/test-v37a-dip-passthrough.yml @@ -0,0 +1,55 @@ +name: V37A DIP Passthrough + +on: + push: + branches: + - test/v37a-dip-passthrough + workflow_dispatch: + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: mlugg/setup-zig@v2 + with: + version: '0.16.0' + + - name: Build + shell: bash + run: | + set -euo pipefail + zig build all-variants -Doptimize=ReleaseSmall \ + -Dweirdperformance=false \ + -Doutline=true \ + -Dcustomassets=true \ + -Dtransmogfix=true + + - name: Package + shell: bash + run: | + set -euo pipefail + rm -rf package dist + mkdir -p package/DLL package/Interface/AddOns/WeirdUtils_Outline dist + cp zig-out/variants/outline.dll package/DLL/outline.dll + cp src/outline/addon/Bindings.xml package/Interface/AddOns/WeirdUtils_Outline/ + cp src/outline/addon/Outline.lua package/Interface/AddOns/WeirdUtils_Outline/ + cp src/outline/addon/WeirdUtils_Outline.toc package/Interface/AddOns/WeirdUtils_Outline/ + printf '%s\n' \ + 'V37A DIP passthrough isolation test.' \ + 'EndScene and DrawIndexedPrimitive vtable hooks are installed.' \ + 'DIP detour performs no Outline capture/state/resource work and immediately calls original DIP.' \ + 'Reset remains untouched.' \ + 'Visible outline is intentionally absent in this diagnostic build.' \ + 'main branch untouched; WeirdPerformance not modified.' \ + > package/README_TEST.txt + (cd package && sha256sum DLL/outline.dll > SHA256SUMS.txt && zip -r ../dist/WeirdUtils_V37A_DIP_PASSTHROUGH.zip DLL Interface README_TEST.txt SHA256SUMS.txt) + + - uses: actions/upload-artifact@v4 + with: + name: WeirdUtils-V37A-DIP-PASSTHROUGH + path: dist/WeirdUtils_V37A_DIP_PASSTHROUGH.zip + if-no-files-found: error