Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,17 @@ jobs:
# Download and build libolm (pinned to v3.2.16 for reproducible builds)
git clone --branch 3.2.16 --depth 1 https://gitlab.matrix.org/matrix-org/olm.git C:\olm
cd C:\olm

# Patch CMakeLists.txt to require CMake 3.5+ (for compatibility with modern CMake)
$originalContent = Get-Content CMakeLists.txt -Raw
$patchedContent = $originalContent -replace 'cmake_minimum_required\(VERSION [0-9]+\.[0-9]+(?:\.[0-9]+)?\)', 'cmake_minimum_required(VERSION 3.5)'
Copy link

Copilot AI Oct 31, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The regex pattern uses PowerShell string escaping but the parentheses in cmake_minimum_required are not escaped. While this works, it's more correct to escape them as \( and \) for clarity, or use a verbatim string pattern. Consider: 'cmake_minimum_required\\(VERSION [0-9]+\\.[0-9]+(?:\\.[0-9]+)?\\)' for better maintainability.

Suggested change
$patchedContent = $originalContent -replace 'cmake_minimum_required\(VERSION [0-9]+\.[0-9]+(?:\.[0-9]+)?\)', 'cmake_minimum_required(VERSION 3.5)'
$patchedContent = $originalContent -replace 'cmake_minimum_required\\(VERSION [0-9]+\\.[0-9]+(?:\\.[0-9]+)?\\)', 'cmake_minimum_required(VERSION 3.5)'

Copilot uses AI. Check for mistakes.
if ($patchedContent -ne $originalContent) {
Set-Content CMakeLists.txt $patchedContent
Write-Host "Successfully patched CMakeLists.txt to require CMake 3.5+"
} else {
Write-Host "Warning: CMakeLists.txt patch pattern not found, continuing anyway..."
}

cmake -S . -B build `
-DCMAKE_INSTALL_PREFIX=C:\olm-install `
-DCMAKE_BUILD_TYPE=Release `
Expand Down Expand Up @@ -353,7 +364,13 @@ jobs:
run: |
# Detect homebrew prefix (Apple Silicon uses /opt/homebrew, Intel uses /usr/local)
HOMEBREW_PREFIX=$(brew --prefix)
echo "PKG_CONFIG_PATH=${HOMEBREW_PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}" >> "$GITHUB_ENV"

# Set environment variables for subsequent steps
{
echo "PKG_CONFIG_PATH=${HOMEBREW_PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}"
echo "CFLAGS=-I${HOMEBREW_PREFIX}/include"
echo "LDFLAGS=-L${HOMEBREW_PREFIX}/lib"
} >> "$GITHUB_ENV"

- name: Install dependencies
run: |
Expand Down
328 changes: 0 additions & 328 deletions AUDIT_SUMMARY.md

This file was deleted.

Loading
Loading