Commit graph

19 commits

Author SHA1 Message Date
Fabio Baltieri 5b7d55d281 ci: align the runner list with the main repository
Use the same runner list as the main repository ones. Originally I meant
to just add macos-14 so we cover macOS ARM, which is nice because it
runs on qemu-m0 from the brew package, but at this point let's also use
explicit version for the other runners too.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-02-08 11:01:47 +00:00
Fabio Baltieri e946fbdf14 ci: use the zephyr-setup action
Use the standard generic GitHub images for the run and the zephyr-setup
action, run the build on both Linux, macOS and Windows.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-01-29 12:19:26 +00:00
Fabio Baltieri 2143dd9c0b ci: use shallow fetch and no tags
Add a couple flags to west update to do shallow fetch for both the main
repo and modules, and don't fetch any tags. Should speed things up a bit
by only fetching the target version code for all modules.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-08-14 18:58:07 +00:00
Gerard Marull-Paretas 27bc3ea258 ci: build application using twister
Twister is more useful in a CI context because we can easily test
multiple combinations of the firmware using a single command.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-05-04 23:13:19 +09:00
Gerard Marull-Paretas 563db50f57 ci: do not archive firmware
It's not useful, just wastes time/space for nothing.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-05-04 23:13:19 +09:00
Gerard Marull-Paretas 1c06a7f6c9 ci: pin runner and container versions
Make sure we can safely go back in time by pinning runner and container
versions.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-05-04 23:13:19 +09:00
Gerard Marull-Paretas 5939755cbb ci: simplify twister args
s/G/--integration (more clear)
s/--testsuite-root/-T (shorter, still clear)

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-05-03 19:06:23 +09:00
Gerard Marull-Paretas f4baa37159 ci: use west twister
Invoke Twister using west.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-05-03 19:06:23 +09:00
Gerard Marull-Paretas 0a7afcb0dc ci: remove redundant --board-root
Twister automatically adds module board root folders now.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-05-03 19:06:23 +09:00
Gerard Marull-Paretas 1941a63998 ci: build: update checkout/upload-artifact actions
These actions are triggering warnings about usage of deprecated features
(e.g. NodeJS 12). Use latest version of the actions.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-04-24 11:39:18 +00:00
Gerard Marull-Paretas 1a440a2182 ci: schedule a daily build
Schedule a daily build, so that we can quickly spot regressions in the
application due to changes in Zephyr.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-04-14 11:25:03 +02:00
Carles Cufi 0bfce607ad lib: Fix running twister
Use integration_platforms and invoke twister properly.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2022-11-19 16:16:52 +01:00
Carles Cufi 605c65039f workflows: build: Do not install west and requirements
This is not necessary since it's running in the zephyr docker image,
that already contains them.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2022-11-19 16:16:52 +01:00
Gregory Shue 62957ec09f lib: add custom_lib
Enhance the example-application repository with a configurable,
trivial library example and associated test cases.
.
This implementation appears to make no assumptions.
.
This implementation was verified by running the following commands
in an example-application workspace and verifying all tests passed.
  1. `west build -b native_posix -p always example-application/tests/lib/custom_lib/`
  2. `./build/zephyr/zephyr.exe`
  3. `west build -b native_posix -p always example-application/tests/lib/custom_lib/ -- -DCONFIG_CUSTOM_LIB_GET_VALUE_DEFAULT=6`
  4. `./build/zephyr/zephyr.exe`
  5. `zephyr/scripts/twister -T example-application/tests/ \
      -p qemu_cortex_m0`
  6. `cd zephyr/doc && make clean && make` built cleanly.
.
Note that `twister` does not follow the `zephyr/module.yml:tests`
setting to discover tests in modules, so the testcase-root must be
explicitly provided.

Fixes #35177

Signed-off-by: Gregory Shue <gregory.shue@legrand.us>
2022-11-17 15:09:34 +01:00
Gerard Marull-Paretas ed8b4f4875 ci/readme: remove usage of -s legacy option
-s/--source is a legacy option. There's a proposal to actually use it
for something else in Zephyr now:

https://github.com/zephyrproject-rtos/zephyr/pull/40669

Let's update README.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2022-07-07 12:41:29 +02:00
Torsten Rasmussen 325bd84244 workflow: add /opt/toolchains to CMAKE_PREFIX_PATH in environment.
Fixes: #39270

The latest zephyrprojectrtos/ci no longer sets ZEPHYR_SDK_INSTALL_DIR
in the environment and doesn't register the Zephyr-SDK as a CMake
package in the CMake package registry.

To ensure the the Zephyr SDK can be correctly discovered by
find_package(Zephyr-sdk) we add `/opt/toolchains` to the
CMAKE_PREFIX_PATH environment variable which is a list containing
additional search prefixes for the `find_package()` function.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2021-10-11 10:19:07 +02:00
Kumar Gala 301b6e0423 ci: Remove cache
CI is failing and it seems related to cache.  Remove for now to get
CI passing again.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2021-06-02 09:35:47 -05:00
Gerard Marull-Paretas a8d668cb63 ci: run on pull_request
Run CI on push and pull_request.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2021-05-18 11:19:56 -04:00
Gerard Marull-Paretas 8689c36036 ci: initial CI example
CI example using Github Actions

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2021-05-07 10:04:22 -04:00