ci: install cmake and g++ before configuring
ci / smoke (push) Canceled after 0s

The runner image has no cmake (exit 127 on the first step), so the toolchain is
installed up front; the versions and core count land in the log.
This commit is contained in:
dsh committed 2026-11-10 19:51:08 +08:00
1 parent b4be8f6bae
commit c170627ed9
1 file changed
+14
+14
View File
@@ -23,6 +23,20 @@ jobs:
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
# The runner image is a bare ubuntu: no cmake, no compiler. Install the
# toolchain the build needs (and print it, so the log shows what we got).
- name: toolchain
env:
DEBIAN_FRONTEND: noninteractive
run: |
set -eu
SUDO=""
command -v sudo >/dev/null 2>&1 && SUDO=sudo
$SUDO apt-get update -qq
$SUDO apt-get install -y -qq --no-install-recommends cmake g++ make
cmake --version | head -1
g++ --version | head -1
echo "cores: $(nproc)"
- name: configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: build