File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -23,21 +23,24 @@ jobs:
2323 with :
2424 submodules : ' recursive'
2525
26- - name : Install distro dependencies
26+ - name : Install distro dependencies and recent CMake
2727 run : |
28+ # Add Kitware APT repository to get a version of CMake that supports FetchContent
29+ sudo apt-get update
30+ sudo apt-get install -y wget gpg
31+ wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
32+ echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ $(. /etc/os-release && echo $VERSION_CODENAME) main' | sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null
33+
34+ # Update package list again and install all build dependencies
2835 sudo apt-get update
2936 sudo apt-get install -y \
37+ cmake \
3038 build-essential \
3139 ninja-build extra-cmake-modules \
3240 libfcitx5core-dev libfcitx5utils-dev libfcitx5config-dev \
3341 libsqlite3-dev qt6-base-dev qt6-base-dev-tools libicu-dev \
3442 gettext appstream
3543
36- - name : Install recent CMake
37- uses : kitware/cmake-action@v2
38- with :
39- version : " >=3.14"
40-
4144 - name : Configure
4245 run : |
4346 cmake -B build -G Ninja \
You can’t perform that action at this time.
0 commit comments