From b9019eb34b5e97662646815d18e1de8b2657cf5a Mon Sep 17 00:00:00 2001 From: williamisbeast95 Date: Fri, 15 May 2026 20:17:09 -0700 Subject: [PATCH 1/5] Add preset number to window title and bump to 2.0.1 --- CHANGELOG.md | 7 +++++++ CMakeLists.txt | 2 +- src/SDLRenderingWindow.cpp | 18 ++++++++++++++++-- 3 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..54513cf --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +# Changelog + +## 2.0.1 (2026-05-16) + +- Added preset number in the window title when `window.displayPresetNameInTitle=true`. +- Uses numeric suffix from preset names like `MilkDrop2077.0001.milk` when present. +- Falls back to playlist position when preset filename does not contain a numeric suffix. diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ee7050..6ee4937 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON) project(projectMSDL LANGUAGES C CXX - VERSION 2.0.0 + VERSION 2.0.1 ) list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") diff --git a/src/SDLRenderingWindow.cpp b/src/SDLRenderingWindow.cpp index 1516acf..420f300 100644 --- a/src/SDLRenderingWindow.cpp +++ b/src/SDLRenderingWindow.cpp @@ -14,6 +14,8 @@ #include +#include + const char* SDLRenderingWindow::name() const { return "SDL2 Rendering Window"; @@ -396,14 +398,25 @@ void SDLRenderingWindow::UpdateWindowTitle() auto& app = Poco::Util::Application::instance(); auto& projectMWrapper = app.getSubsystem(); - auto presetName = projectm_playlist_item(projectMWrapper.Playlist(), projectm_playlist_get_position(projectMWrapper.Playlist())); + auto currentPosition = projectm_playlist_get_position(projectMWrapper.Playlist()); + auto presetName = projectm_playlist_item(projectMWrapper.Playlist(), currentPosition); if (presetName) { Poco::Path presetFile(presetName); projectm_playlist_free_string(presetName); - newTitle += " ➫ " + presetFile.getBaseName(); + auto presetBaseName = presetFile.getBaseName(); + std::string presetNumber = std::to_string(currentPosition + 1); + + // If basename is like "MilkDrop2077.0001", use the trailing digits as preset number. + std::smatch match; + if (std::regex_match(presetBaseName, match, std::regex(R"(.*\.(\d+)$)")) && match.size() > 1) + { + presetNumber = match[1].str(); + } + + newTitle += " [" + presetNumber + "] -> " + presetBaseName; } if (projectm_get_preset_locked(projectMWrapper.ProjectM())) @@ -461,3 +474,4 @@ void SDLRenderingWindow::OnConfigurationPropertyRemoved(const std::string& key) UpdateWindowTitle(); } } + From 0298612382b37a0731ea0dc1a03205cf0c8b9cb0 Mon Sep 17 00:00:00 2001 From: williamisbeast95 Date: Fri, 15 May 2026 21:42:49 -0700 Subject: [PATCH 2/5] Fix CI auth fallback for vcpkg and use built-in token for lockdown --- .github/workflows/buildcheck.yaml | 12 +++++++++++- .github/workflows/lockdown-prs.yaml | 2 +- .github/workflows/release-windows.yaml | 12 +++++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/buildcheck.yaml b/.github/workflows/buildcheck.yaml index af3a175..ab5428a 100644 --- a/.github/workflows/buildcheck.yaml +++ b/.github/workflows/buildcheck.yaml @@ -97,7 +97,6 @@ jobs: USERNAME: projectM-visualizer VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg FEED_URL: https://nuget.pkg.github.com/projectM-visualizer/index.json - VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/projectM-visualizer/index.json,readwrite" steps: @@ -112,7 +111,18 @@ jobs: shell: pwsh run: ${{ github.workspace }}/vcpkg/bootstrap-vcpkg.bat + - name: Configure vcpkg binary sources (public fallback) + shell: pwsh + run: | + if ("${{ secrets.VCPKG_PACKAGES_TOKEN }}" -ne "") { + "VCPKG_BINARY_SOURCES=clear;nuget,https://nuget.pkg.github.com/projectM-visualizer/index.json,readwrite" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + } else { + "VCPKG_BINARY_SOURCES=clear;files,${{ github.workspace }}/vcpkg_cache,readwrite" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + New-Item -ItemType Directory -Force -Path "${{ github.workspace }}/vcpkg_cache" | Out-Null + } + - name: Add NuGet sources + if: ${{ secrets.VCPKG_PACKAGES_TOKEN != '' }} shell: pwsh run: | .$(${{ env.VCPKG_EXE }} fetch nuget) ` diff --git a/.github/workflows/lockdown-prs.yaml b/.github/workflows/lockdown-prs.yaml index a62d259..a7be9d5 100644 --- a/.github/workflows/lockdown-prs.yaml +++ b/.github/workflows/lockdown-prs.yaml @@ -16,7 +16,7 @@ jobs: steps: - uses: dessant/repo-lockdown@v4 with: - github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + github-token: ${{ github.token }} issue-comment: > This repository does not accept bug reports. Please report any issues in the [main projectM repository](https://github.com/projectM-visualizer/projectm/issues/new/choose). diff --git a/.github/workflows/release-windows.yaml b/.github/workflows/release-windows.yaml index 914f698..e7a2381 100644 --- a/.github/workflows/release-windows.yaml +++ b/.github/workflows/release-windows.yaml @@ -28,7 +28,6 @@ jobs: USERNAME: projectM-visualizer VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg FEED_URL: https://nuget.pkg.github.com/projectM-visualizer/index.json - VCPKG_BINARY_SOURCES: "clear;nuget,https://nuget.pkg.github.com/projectM-visualizer/index.json,readwrite" steps: - name: Checkout vcpkg @@ -42,7 +41,18 @@ jobs: shell: pwsh run: ${{ github.workspace }}/vcpkg/bootstrap-vcpkg.bat + - name: Configure vcpkg binary sources (public fallback) + shell: pwsh + run: | + if ("${{ secrets.VCPKG_PACKAGES_TOKEN }}" -ne "") { + "VCPKG_BINARY_SOURCES=clear;nuget,https://nuget.pkg.github.com/projectM-visualizer/index.json,readwrite" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + } else { + "VCPKG_BINARY_SOURCES=clear;files,${{ github.workspace }}/vcpkg_cache,readwrite" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + New-Item -ItemType Directory -Force -Path "${{ github.workspace }}/vcpkg_cache" | Out-Null + } + - name: Add NuGet sources + if: ${{ secrets.VCPKG_PACKAGES_TOKEN != '' }} shell: pwsh run: | .$(${{ env.VCPKG_EXE }} fetch nuget) ` From 69f8a58deb13fcdb608b1e9820cd736cf3f0da44 Mon Sep 17 00:00:00 2001 From: williamisbeast95 Date: Fri, 15 May 2026 21:49:17 -0700 Subject: [PATCH 3/5] Fix workflow syntax: use env var for token checks in if conditions --- .github/workflows/buildcheck.yaml | 11 ++++++----- .github/workflows/release-windows.yaml | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/buildcheck.yaml b/.github/workflows/buildcheck.yaml index ab5428a..6f8d7e8 100644 --- a/.github/workflows/buildcheck.yaml +++ b/.github/workflows/buildcheck.yaml @@ -97,7 +97,7 @@ jobs: USERNAME: projectM-visualizer VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg FEED_URL: https://nuget.pkg.github.com/projectM-visualizer/index.json - + HAS_VCPKG_PACKAGES_TOKEN: ${{ secrets.VCPKG_PACKAGES_TOKEN }} steps: - name: Checkout vcpkg @@ -114,7 +114,7 @@ jobs: - name: Configure vcpkg binary sources (public fallback) shell: pwsh run: | - if ("${{ secrets.VCPKG_PACKAGES_TOKEN }}" -ne "") { + if ("${{ env.HAS_VCPKG_PACKAGES_TOKEN }}" -ne "") { "VCPKG_BINARY_SOURCES=clear;nuget,https://nuget.pkg.github.com/projectM-visualizer/index.json,readwrite" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append } else { "VCPKG_BINARY_SOURCES=clear;files,${{ github.workspace }}/vcpkg_cache,readwrite" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append @@ -122,7 +122,7 @@ jobs: } - name: Add NuGet sources - if: ${{ secrets.VCPKG_PACKAGES_TOKEN != '' }} + if: ${{ env.HAS_VCPKG_PACKAGES_TOKEN != '' }} shell: pwsh run: | .$(${{ env.VCPKG_EXE }} fetch nuget) ` @@ -131,9 +131,9 @@ jobs: -StorePasswordInClearText ` -Name GitHubPackages ` -UserName "${{ env.USERNAME }}" ` - -Password "${{ secrets.VCPKG_PACKAGES_TOKEN }}" + -Password "${{ env.HAS_VCPKG_PACKAGES_TOKEN }}" .$(${{ env.VCPKG_EXE }} fetch nuget) ` - setapikey "${{ secrets.VCPKG_PACKAGES_TOKEN }}" ` + setapikey "${{ env.HAS_VCPKG_PACKAGES_TOKEN }}" ` -Source "${{ env.FEED_URL }}" - name: Checkout libprojectM Sources @@ -217,3 +217,4 @@ jobs: with: name: projectMSDL-buildcheck-macos path: cmake-build-frontend-sdl2/*.tar.gz + diff --git a/.github/workflows/release-windows.yaml b/.github/workflows/release-windows.yaml index e7a2381..f04ad92 100644 --- a/.github/workflows/release-windows.yaml +++ b/.github/workflows/release-windows.yaml @@ -28,7 +28,7 @@ jobs: USERNAME: projectM-visualizer VCPKG_EXE: ${{ github.workspace }}/vcpkg/vcpkg FEED_URL: https://nuget.pkg.github.com/projectM-visualizer/index.json - + HAS_VCPKG_PACKAGES_TOKEN: ${{ secrets.VCPKG_PACKAGES_TOKEN }} steps: - name: Checkout vcpkg uses: actions/checkout@v6 @@ -44,7 +44,7 @@ jobs: - name: Configure vcpkg binary sources (public fallback) shell: pwsh run: | - if ("${{ secrets.VCPKG_PACKAGES_TOKEN }}" -ne "") { + if ("${{ env.HAS_VCPKG_PACKAGES_TOKEN }}" -ne "") { "VCPKG_BINARY_SOURCES=clear;nuget,https://nuget.pkg.github.com/projectM-visualizer/index.json,readwrite" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append } else { "VCPKG_BINARY_SOURCES=clear;files,${{ github.workspace }}/vcpkg_cache,readwrite" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append @@ -52,7 +52,7 @@ jobs: } - name: Add NuGet sources - if: ${{ secrets.VCPKG_PACKAGES_TOKEN != '' }} + if: ${{ env.HAS_VCPKG_PACKAGES_TOKEN != '' }} shell: pwsh run: | .$(${{ env.VCPKG_EXE }} fetch nuget) ` @@ -61,9 +61,9 @@ jobs: -StorePasswordInClearText ` -Name GitHubPackages ` -UserName "${{ env.USERNAME }}" ` - -Password "${{ secrets.VCPKG_PACKAGES_TOKEN }}" + -Password "${{ env.HAS_VCPKG_PACKAGES_TOKEN }}" .$(${{ env.VCPKG_EXE }} fetch nuget) ` - setapikey "${{ secrets.VCPKG_PACKAGES_TOKEN }}" ` + setapikey "${{ env.HAS_VCPKG_PACKAGES_TOKEN }}" ` -Source "${{ env.FEED_URL }}" - name: Checkout projectMSDL Sources @@ -111,3 +111,4 @@ jobs: name: projectMSDL-Windows-Portable-x64 path: | cmake-build-frontend-sdl2/*.zip + From 82baec8abf3cf0b9c0d25b6e6951fcf0e811cfb4 Mon Sep 17 00:00:00 2001 From: williamisbeast95 Date: Fri, 15 May 2026 21:52:52 -0700 Subject: [PATCH 4/5] Fix Windows CI: use Ninja generator and token-safe vcpkg workflow logic --- .github/workflows/buildcheck.yaml | 10 +++++----- .github/workflows/release-windows.yaml | 7 ++++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/buildcheck.yaml b/.github/workflows/buildcheck.yaml index 6f8d7e8..bfcf716 100644 --- a/.github/workflows/buildcheck.yaml +++ b/.github/workflows/buildcheck.yaml @@ -146,9 +146,9 @@ jobs: - name: Build/Install libprojectM run: | mkdir cmake-build-libprojectm - cmake -G "Visual Studio 17 2022" -A "X64" -S "${{ github.workspace }}/projectm" -B "${{ github.workspace }}/cmake-build-libprojectm" -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install-libprojectm" -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$:Debug>" -DCMAKE_VERBOSE_MAKEFILE=YES -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=NO - cmake --build "${{ github.workspace }}/cmake-build-libprojectm" --config Release --parallel - cmake --install "${{ github.workspace }}/cmake-build-libprojectm" --config Release + cmake -G Ninja -S "${{ github.workspace }}/projectm" -B "${{ github.workspace }}/cmake-build-libprojectm" -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install-libprojectm" -DCMAKE_BUILD_TYPE=Release -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded" -DCMAKE_VERBOSE_MAKEFILE=YES -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=NO + cmake --build "${{ github.workspace }}/cmake-build-libprojectm" --parallel + cmake --install "${{ github.workspace }}/cmake-build-libprojectm" - name: Checkout projectMSDL Sources uses: actions/checkout@v6 @@ -159,8 +159,8 @@ jobs: - name: Build projectMSDL run: | mkdir cmake-build-frontend-sdl2 - cmake -G "Visual Studio 17 2022" -A "X64" -S "${{ github.workspace }}/frontend-sdl2" -B "${{ github.workspace }}/cmake-build-frontend-sdl2" -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install-libprojectm" -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install-frontend-sdl2" -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$:Debug>" -DCMAKE_VERBOSE_MAKEFILE=YES -DSDL2_LINKAGE=static -DBUILD_TESTING=YES - cmake --build "${{ github.workspace }}/cmake-build-frontend-sdl2" --parallel --config Release + cmake -G Ninja -S "${{ github.workspace }}/frontend-sdl2" -B "${{ github.workspace }}/cmake-build-frontend-sdl2" -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install-libprojectm" -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install-frontend-sdl2" -DCMAKE_BUILD_TYPE=Release -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded" -DCMAKE_VERBOSE_MAKEFILE=YES -DSDL2_LINKAGE=static -DBUILD_TESTING=YES + cmake --build "${{ github.workspace }}/cmake-build-frontend-sdl2" --parallel - name: Package projectMSDL run: | diff --git a/.github/workflows/release-windows.yaml b/.github/workflows/release-windows.yaml index f04ad92..f349797 100644 --- a/.github/workflows/release-windows.yaml +++ b/.github/workflows/release-windows.yaml @@ -88,17 +88,18 @@ jobs: - name: Build projectMSDL run: | mkdir cmake-build-frontend-sdl2 - cmake -G "Visual Studio 17 2022" -A "X64" ` + cmake -G Ninja ` -S "${{ github.workspace }}/frontend-sdl2" ` -B "${{ github.workspace }}/cmake-build-frontend-sdl2" ` -DCMAKE_TOOLCHAIN_FILE="${Env:VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" ` -DVCPKG_TARGET_TRIPLET=x64-windows ` -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install-libprojectm" ` - -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded$<$:Debug>DLL" ` + -DCMAKE_BUILD_TYPE=Release ` + -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreadedDLL" ` -DPRESET_DIRS="${{ github.workspace }}/presets-cream-of-the-crop" ` -DTEXTURE_DIRS="${{ github.workspace }}/presets-milkdrop-texture-pack/textures" ` -DENABLE_INSTALL_BDEPS=ON - cmake --build "${{ github.workspace }}/cmake-build-frontend-sdl2" --parallel --config Release + cmake --build "${{ github.workspace }}/cmake-build-frontend-sdl2" --parallel - name: Package projectMSDL run: | From 5155c276165b22d1dbd5f0e62167ddb0a0c387ef Mon Sep 17 00:00:00 2001 From: williamisbeast95 Date: Fri, 15 May 2026 22:08:56 -0700 Subject: [PATCH 5/5] Fix Windows CI toolchain mismatch: force MSVC with Ninja --- .github/workflows/buildcheck.yaml | 9 +++++++-- .github/workflows/release-windows.yaml | 7 +++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildcheck.yaml b/.github/workflows/buildcheck.yaml index bfcf716..ec3a66b 100644 --- a/.github/workflows/buildcheck.yaml +++ b/.github/workflows/buildcheck.yaml @@ -111,6 +111,11 @@ jobs: shell: pwsh run: ${{ github.workspace }}/vcpkg/bootstrap-vcpkg.bat + - name: Setup MSVC Developer Command Prompt + uses: ilammy/msvc-dev-cmd@v1 + with: + arch: x64 + - name: Configure vcpkg binary sources (public fallback) shell: pwsh run: | @@ -146,7 +151,7 @@ jobs: - name: Build/Install libprojectM run: | mkdir cmake-build-libprojectm - cmake -G Ninja -S "${{ github.workspace }}/projectm" -B "${{ github.workspace }}/cmake-build-libprojectm" -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install-libprojectm" -DCMAKE_BUILD_TYPE=Release -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded" -DCMAKE_VERBOSE_MAKEFILE=YES -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=NO + cmake -G Ninja -S "${{ github.workspace }}/projectm" -B "${{ github.workspace }}/cmake-build-libprojectm" -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install-libprojectm" -DCMAKE_BUILD_TYPE=Release -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded" -DCMAKE_VERBOSE_MAKEFILE=YES -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=NO cmake --build "${{ github.workspace }}/cmake-build-libprojectm" --parallel cmake --install "${{ github.workspace }}/cmake-build-libprojectm" @@ -159,7 +164,7 @@ jobs: - name: Build projectMSDL run: | mkdir cmake-build-frontend-sdl2 - cmake -G Ninja -S "${{ github.workspace }}/frontend-sdl2" -B "${{ github.workspace }}/cmake-build-frontend-sdl2" -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install-libprojectm" -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install-frontend-sdl2" -DCMAKE_BUILD_TYPE=Release -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded" -DCMAKE_VERBOSE_MAKEFILE=YES -DSDL2_LINKAGE=static -DBUILD_TESTING=YES + cmake -G Ninja -S "${{ github.workspace }}/frontend-sdl2" -B "${{ github.workspace }}/cmake-build-frontend-sdl2" -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DCMAKE_TOOLCHAIN_FILE="${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install-libprojectm" -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install-frontend-sdl2" -DCMAKE_BUILD_TYPE=Release -DCMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded" -DCMAKE_VERBOSE_MAKEFILE=YES -DSDL2_LINKAGE=static -DBUILD_TESTING=YES cmake --build "${{ github.workspace }}/cmake-build-frontend-sdl2" --parallel - name: Package projectMSDL diff --git a/.github/workflows/release-windows.yaml b/.github/workflows/release-windows.yaml index f349797..d2c5565 100644 --- a/.github/workflows/release-windows.yaml +++ b/.github/workflows/release-windows.yaml @@ -41,6 +41,11 @@ jobs: shell: pwsh run: ${{ github.workspace }}/vcpkg/bootstrap-vcpkg.bat + - name: Setup MSVC Developer Command Prompt + uses: ilammy/msvc-dev-cmd@v1 + with: + arch: x64 + - name: Configure vcpkg binary sources (public fallback) shell: pwsh run: | @@ -91,6 +96,8 @@ jobs: cmake -G Ninja ` -S "${{ github.workspace }}/frontend-sdl2" ` -B "${{ github.workspace }}/cmake-build-frontend-sdl2" ` + -DCMAKE_C_COMPILER=cl ` + -DCMAKE_CXX_COMPILER=cl ` -DCMAKE_TOOLCHAIN_FILE="${Env:VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" ` -DVCPKG_TARGET_TRIPLET=x64-windows ` -DCMAKE_PREFIX_PATH="${{ github.workspace }}/install-libprojectm" `