From 2948ffc7464300f4ea8ce739c3f077cfc0143cb3 Mon Sep 17 00:00:00 2001 From: scawful Date: Fri, 26 Sep 2025 23:31:19 -0400 Subject: [PATCH] Refactor build environment setup in release workflow - Updated the build environment setup step to provide clearer messaging for all platforms. - Streamlined the CMake configuration for Linux/macOS to enable UI tests and full dependency support. - Adjusted Windows configuration to maintain a minimal build approach while disabling UI tests and ensuring compatibility. - Added flags to disable emulator and developer tools for cleaner releases across all platforms. --- .github/workflows/release.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 492f6176..e960ebb6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -209,11 +209,12 @@ jobs: # Install Homebrew dependencies needed for UI tests and full builds brew install pkg-config libpng boost abseil ninja - - name: Setup Windows build environment - if: runner.os == 'Windows' + - name: Setup build environment run: | - echo "Using minimal build approach to avoid vcpkg dependency issues" - echo "This disables optional PNG/ZLIB features but ensures reliable builds" + echo "Using streamlined release build configuration for all platforms" + echo "Linux/macOS: UI tests enabled with full dependency support" + echo "Windows: Minimal build to avoid vcpkg issues, UI tests disabled" + echo "All platforms: Emulator and developer tools disabled for clean releases" # Configure CMake - name: Configure CMake (Linux/macOS) @@ -224,9 +225,11 @@ jobs: -DCMAKE_POLICY_VERSION_MINIMUM=3.16 \ -DYAZE_BUILD_TESTS=OFF \ -DYAZE_BUILD_EMU=OFF \ + -DYAZE_BUILD_Z3ED=OFF \ -DYAZE_ENABLE_UI_TESTS=ON \ -DYAZE_ENABLE_ROM_TESTS=OFF \ -DYAZE_ENABLE_EXPERIMENTAL_TESTS=OFF \ + -DYAZE_INSTALL_LIB=OFF \ -GNinja - name: Configure CMake (Windows) @@ -238,9 +241,10 @@ jobs: -DCMAKE_POLICY_VERSION_MINIMUM=3.16 ^ -DYAZE_BUILD_TESTS=OFF ^ -DYAZE_BUILD_EMU=OFF ^ - -DYAZE_ENABLE_UI_TESTS=ON ^ + -DYAZE_BUILD_Z3ED=OFF ^ -DYAZE_ENABLE_ROM_TESTS=OFF ^ -DYAZE_ENABLE_EXPERIMENTAL_TESTS=OFF ^ + -DYAZE_INSTALL_LIB=OFF ^ -DYAZE_MINIMAL_BUILD=ON ^ -G "${{ matrix.cmake_generator }}" ^ -A ${{ matrix.cmake_generator_platform }}