Fix debug-mode building on Windows

ASan seems broken, and the debug-mode DLL names are different
This commit is contained in:
ISSOtm
2026-03-16 11:39:51 +01:00
committed by Rangi
parent 10e1c9d187
commit a5bb431d47

View File

@@ -159,11 +159,11 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
run: | # BUILD_SHARED_LIBS causes the output DLL to be called `z.dll` as of zlib 1.3.2 (formerly `zlib1.dll`)
cmake -S zlib -B zbuild -A ${{ matrix.platform }} -Wno-dev -DCMAKE_INSTALL_PREFIX=install_dir -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON
cmake -S zlib -B zbuild -A ${{ matrix.platform }} -Wno-dev -DCMAKE_INSTALL_PREFIX=install_dir -DBUILD_SHARED_LIBS=ON
cmake --build zbuild --config Debug -j
- name: Install zlib
run: |
cmake --install zbuild
cmake --install zbuild --config Debug
- name: Build libpng
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
@@ -172,18 +172,18 @@ jobs:
cmake --build pngbuild --config Debug -j
- name: Install libpng
run: |
cmake --install pngbuild
cmake --install pngbuild --config Debug
- name: Build Windows binaries
shell: bash
run: |
cmake -S . -B build -A ${{ matrix.platform }} --preset develop -DCMAKE_INSTALL_PREFIX=install_dir
run: | # ASan seems to be broken on Windows.
cmake -S . -B build -A ${{ matrix.platform }} --preset develop -DCMAKE_INSTALL_PREFIX=install_dir -DSANITIZERS=OFF
cmake --build build --config Debug -j --verbose
cmake --install build --verbose --prefix install_dir
cmake --install build --verbose
- name: Package binaries
shell: bash
run: |
mkdir bins
cp install_dir/bin/{rgbasm.exe,rgblink.exe,rgbfix.exe,rgbgfx.exe,z.dll,libpng16.dll} bins
cp -v install_dir/bin/{rgb*.exe,*.dll} bins
- name: Upload Windows binaries
uses: actions/upload-artifact@v4
with: