Skip to content

Commit 0c6d17a

Browse files
committed
v4.0.2
1 parent 6b41718 commit 0c6d17a

3 files changed

Lines changed: 345 additions & 117 deletions

File tree

.github/workflows/build-cpp.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,16 @@ jobs:
8484
update-package-index: true
8585

8686
# ---- System dependencies (Linux) ----
87+
# Ubuntu 22.04's default g++ is 11.4, but CMakeLists.txt requires GCC 12.3+.
88+
# Install gcc-12/g++-12 from the Ubuntu Toolchain PPA (pre-enabled on
89+
# ubuntu-22.04 runners) and pin it via CC/CXX for the rest of the job.
8790
- name: Install system dependencies (Linux)
8891
if: runner.os == 'Linux'
8992
run: |
9093
sudo add-apt-repository universe -y
9194
sudo apt-get update -qq
9295
sudo apt-get install -y \
93-
cmake ninja-build g++ \
96+
cmake ninja-build gcc-12 g++-12 \
9497
libssl-dev \
9598
qt6-base-dev qt6-base-private-dev \
9699
qt6-tools-dev qt6-tools-dev-tools \
@@ -103,6 +106,8 @@ jobs:
103106
libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 \
104107
libxcb-xinerama0 libxcb-xkb1 \
105108
pkg-config zip
109+
echo "CC=gcc-12" >> "$GITHUB_ENV"
110+
echo "CXX=g++-12" >> "$GITHUB_ENV"
106111
107112
# ---- OpenSSL dev libs (Windows) ----
108113
# windows-2022 runners ship only the "Light" OpenSSL (no .lib files).

0 commit comments

Comments
 (0)