Skip to content

Commit 22bdb96

Browse files
Add CMake 3.31.6 build from source for Ubuntu 16.04 compatibility
- Download and build CMake 3.31.6 from source to replace outdated system version - Install to /usr/local with symlink override for system cmake - Add libssl-dev dependency for CMake bootstrap HTTPS support - Remove old cmake from apt install since we build from source - Enables building Raylib with modern CMake while maintaining glibc 2.23 compatibility 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent afb42e2 commit 22bdb96

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,20 @@ jobs:
2929
apt install -y software-properties-common
3030
add-apt-repository ppa:git-core/ppa -y
3131
apt update
32-
apt install -y wget curl git build-essential cmake ca-certificates
32+
apt install -y wget curl git build-essential ca-certificates libssl-dev
3333
apt install -y libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libwayland-dev libxkbcommon-dev
3434
35+
- name: Build and install CMake 3.31.6
36+
run: |
37+
cd /tmp
38+
wget https://github.com/Kitware/CMake/releases/download/v3.31.6/cmake-3.31.6.tar.gz
39+
tar -xzf cmake-3.31.6.tar.gz
40+
cd cmake-3.31.6
41+
./bootstrap --prefix=/usr/local
42+
make -j$(nproc)
43+
make install
44+
ln -sf /usr/local/bin/cmake /usr/bin/cmake
45+
cmake --version
3546
3647
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3748
- name: hack node

0 commit comments

Comments
 (0)