From 37560fefeaccf4da690b7259f0b0ca6b6ce4545f Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 9 Jan 2024 11:32:57 -0500 Subject: [PATCH] ci: use kitaware ninja with job server support Needed for full functionality of the job server in twister which only works with kitware supplied ninja version. Signed-off-by: Anas Nashif --- .github/workflows/twister.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/twister.yaml b/.github/workflows/twister.yaml index 49a30e09cda..983a97f8973 100644 --- a/.github/workflows/twister.yaml +++ b/.github/workflows/twister.yaml @@ -179,6 +179,12 @@ jobs: west update --path-cache /github/cache/zephyrproject 2>&1 1> west.update.log || west update --path-cache /github/cache/zephyrproject 2>&1 1> west.update.log || ( rm -rf ../modules ../bootloader ../tools && west update --path-cache /github/cache/zephyrproject) west forall -c 'git reset --hard HEAD' + # Hotfix until we have kitware ninja in the docker image. + # Needed for full functionality of the job server functionality in twister which only works with + # kitware supplied ninja version. + wget -c https://github.com/Kitware/ninja/releases/download/v1.11.1.g95dee.kitware.jobserver-1/ninja-1.11.1.g95dee.kitware.jobserver-1_x86_64-linux-gnu.tar.gz -O - | tar xz --strip-components=1 + sudo cp ninja /usr/local/bin + - name: Check Environment run: | cmake --version