From 292c297518c9087914dcdea039f8505feebdee03 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Mon, 16 Mar 2026 14:16:26 +0100 Subject: [PATCH] Sync Windows release steps with new CI --- .github/workflows/create-release-artifacts.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/create-release-artifacts.yml b/.github/workflows/create-release-artifacts.yml index 159179c3..ac6bb5f6 100644 --- a/.github/workflows/create-release-artifacts.yml +++ b/.github/workflows/create-release-artifacts.yml @@ -28,37 +28,27 @@ jobs: uses: actions/checkout@v4 - name: Install deps run: .github/scripts/get_win_deps.ps1 - - name: Check libraries cache - id: cache - uses: actions/cache@v4 - with: - path: | - zbuild - pngbuild - key: ${{ matrix.arch }}-${{ hashFiles('zlib/**', 'libpng/**') }} - name: Build zlib - if: steps.cache.outputs.cache-hit != 'true' 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 -DBUILD_SHARED_LIBS=ON cmake --build zbuild --config Release -j - name: Install zlib run: | - cmake --install zbuild + cmake --install zbuild --config Release - name: Build libpng - if: steps.cache.outputs.cache-hit != 'true' shell: bash run: | cmake -S libpng -B pngbuild -A ${{ matrix.platform }} -Wno-dev -DCMAKE_INSTALL_PREFIX=install_dir -DPNG_SHARED=ON -DPNG_STATIC=OFF -DPNG_TESTS=OFF cmake --build pngbuild --config Release -j - name: Install libpng run: | - cmake --install pngbuild + cmake --install pngbuild --config Release - name: Build Windows binaries shell: bash run: | cmake -S . -B build -A ${{ matrix.platform }} -DCMAKE_INSTALL_PREFIX=install_dir -DCMAKE_BUILD_TYPE=Release cmake --build build --config Release -j --verbose - cmake --install build --verbose --prefix install_dir --strip + cmake --install build --config Release --strip - name: Package binaries run: | Compress-Archive -LiteralPath @("install_dir/bin/rgbasm.exe", "install_dir/bin/rgblink.exe", "install_dir/bin/rgbfix.exe", "install_dir/bin/rgbgfx.exe", "install_dir/bin/z.dll", "install_dir/bin/libpng16.dll") "rgbds-win${{ matrix.bits }}.zip"