ci: install gperf in CI workflow
CI / pre-commit (pull_request) Successful in 55s
CI / build (-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++, clang-arm64, ubuntu-latest-arm64) (pull_request) Failing after 2m7s
CI / build (-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++, clang-amd64, ubuntu-latest-amd64) (pull_request) Failing after 2m48s
CI / build (-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++, gcc-arm64, ubuntu-latest-arm64) (pull_request) Failing after 2m27s
CI / build (-DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++, gcc-amd64, ubuntu-latest-amd64) (pull_request) Failing after 2m56s

The build requires gperf to generate src/json_tokens.cpp from the
.gperf source. The CI jobs were failing at CMake configure time with:

  CMake Error at CMakeLists.txt:108 (find_program):
    Could not find GPERF_EXECUTABLE using the following names: gperf

Add gperf to the apt-get install step so all build dependencies are
present on the runners.
This commit is contained in:
2026-06-30 15:59:17 -04:00
parent 4b168c8688
commit 7ffecdda7d
+1 -1
View File
@@ -46,7 +46,7 @@ jobs:
- name: Install deps - name: Install deps
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y build-essential clang cmake sudo apt-get install -y build-essential clang cmake gperf
- name: Build and install weaseljson - name: Build and install weaseljson
run: | run: |