Skip to content

Conversation

@marc-hb
Copy link

@marc-hb marc-hb commented Dec 2, 2025

After many years asking, Github runners finally got ninja by default in April 2025:

So, stop re-installing ninja - at least not unless there is a specific and documented reason to do so. This saves a little bit of time and fixes the following warning in hello_world_multiplatform.yaml:

https://github.com/zephyrproject-rtos/zephyr/actions/runs/19853412716

build (macos-14)
ninja 1.13.2 is already installed and up-to-date.
To reinstall 1.13.2, run: brew reinstall ninja

Do not change the Windows build yet because the build environment is always much more complicated on Windows, so let's first make sure this is fine on Linux and macOS.

After many years asking, Github runners finally got ninja by
default in April 2025:
- actions/runner-images#11235

So, stop re-installing ninja - at least not unless there is a specific
and documented reason to do so. This saves a little bit of time and
fixes the following warning in hello_world_multiplatform.yaml:

https://github.com/zephyrproject-rtos/zephyr/actions/runs/19853412716
```
build (macos-14)
ninja 1.13.2 is already installed and up-to-date.
To reinstall 1.13.2, run: brew reinstall ninja
```

Do not change the Windows build yet because the build environment is
always much more complicated on Windows, so let's first make sure this
is fine on Linux and macOS.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb
Copy link
Author

marc-hb commented Dec 2, 2025

Screenshot 2025-12-02 at 13 46 50 Screenshot 2025-12-02 at 13 48 16

marc-hb added a commit to marc-hb/zephyr that referenced this pull request Dec 2, 2025
Just testing zephyrproject-rtos/action-zephyr-setup#57

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb marc-hb marked this pull request as ready for review December 2, 2025 22:21
@marc-hb
Copy link
Author

marc-hb commented Dec 2, 2025

Successfully tested in Zephyr test PR https://github.com/zephyrproject-rtos/zephyr/actions/runs/19874863459/job/56959638224?pr=100403

Warning is gone (and everything still builds and runs fine).


Screenshot 2025-12-02 at 14 24 06 Screenshot 2025-12-02 at 14 23 05

@marc-hb
Copy link
Author

marc-hb commented Dec 2, 2025

@fabiobaltieri , @henrikbrixandersen this repo does not seem to automatically add reviewers.

@fabiobaltieri
Copy link
Member

Could this cause a regression for users of private runners? If on Linux it does not save any time it may be a good idea to leave it there, feels a bit undefensive to remove a package.

@marc-hb
Copy link
Author

marc-hb commented Dec 3, 2025

Has this action ever been used outside https://github.com/actions/runner-images ? If it has, then those other runners already had to mimic GH runners-provided dependencies by trial and error anyway. I mean it does not look like action-zephyr-setup has a documented list of prerequisites, has it?

tl;dr: this sounds very "theoretical".

@henrikbrixandersen
Copy link
Member

Could this cause a regression for users of private runners? If on Linux it does not save any time it may be a good idea to leave it there, feels a bit undefensive to remove a package.

I don't think this is a big deal, to be honest. I doubt many users are using this action with self-hosted runners, and if they are - as already pointed out by @marc-hb - we have not previously provided a list of dependencies to be installed (except for the one(s) in the Zephyr Getting Started Guide, which includes Ninja).

@fabiobaltieri
Copy link
Member

fabiobaltieri commented Dec 3, 2025

We did have reports from people running this with private runners, definitely not a big deal but if the impact on linux is just a "package already installed" it's worth considering it.

Anyway, if one has a custom runner and is diverging from the github image on the basic tool they are probably going to have load of other issues, let's give it a try see if anyone complains and we can learn from it I guess. This is meant to be "minimal" after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants