Commit graph

10 commits

Author SHA1 Message Date
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