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:
1 parent
b4be8f6bae
commit
c170627ed9
1 file changed
+14
@@ -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
|
||||
|
||||
Reference in new issue
Block a user