Commit Graph

41 Commits

Author SHA1 Message Date
Jamie McCrae 9b1b95c17f ci: Fix zephyr workflow
Updates the upload artifact version

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
(cherry picked from commit 84b56b6111)
2024-11-04 14:28:40 +00:00
Denis Mingulov 12026047bd ci: add imgtool test to workflows
Add imgtool test call to workflows, use pytest and
publish artifacts with test results.

Also enable test run on 'pull_request', but limit
the previous default imgtool_run.sh run ('environment' job)
to run on 'push' event only (the same behaviour as before).

Signed-off-by: Denis Mingulov <denis@mingulov.com>
2024-05-23 14:39:17 +02:00
Roland Mikhel 5c00da4542 ci: Add test cases for ECDSA using PSA Crypto
Add ECDSA verification tests to the CI using the PSA Crypto API

Signed-off-by: Roland Mikhel <roland.mikhel@arm.com>
Change-Id: I904c8929f355ec791ff28ac7c3e0ca3832b2403d
2023-09-12 16:29:11 +02:00
Roland Mikhel 7ecffd4e26 ci: Add new variations for ram-load
Adds new test combinations to the CI to
test the ram-load feature more thoroughly.

Signed-off-by: Roland Mikhel <roland.mikhel@arm.com>
Change-Id: I56d6f74af55ed078947c092726160b123d36f67f
2023-06-29 13:21:30 +02:00
Roland Mikhel 9a82ecae5c ci: add test case for hw-rollback-protection
Signed-off-by: Roland Mikhel <roland.mikhel@arm.com>
Change-Id: If636d9179c6f06d4bf7452b8eb4f07d3829cf2d7
2023-06-27 14:42:34 +02:00
Jamie McCrae 9380135afb ci: zephyr: Update Zephyr image and SDK version
Updates to use the zephyr docker image version 0.26.4 which
includes the zephyr SDK 0.16.1, and resolves build issues with
recent zephyr changes.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-05-23 11:47:03 +01:00
Roland Mikhel 4d51038cd5 workflow: Split configs and disable fail-fast
Split RELEASE configs to match MINSIZEREL configs and
disable auto cancel upon one of the configs exiting with an error.

Signed-off-by: Roland Mikhel <roland.mikhel@arm.com>
Change-Id: I32225ecd1316e0a7067513cfa417e00cdcf660c4
2023-03-02 14:24:25 -07:00
Almir Okato bfdf934e3a espressif: ci: Add new building jobs configs for Espressif chips
Add jobs for testing build ESP32-XX within more features:
Serial Recovery, Multi Image and Multi Boot

Signed-off-by: Almir Okato <almir.okato@espressif.com>
2023-02-03 18:05:07 -03:00
Bartosz Bilas 71ae335750 ci: zephyr: update to Zephyr SDK 0.15.0
Updates the CI workflows to use the Zephyr SDK 0.15.0 for
building and testing Zephyr in the CI.

Fixes:
  E: CMake Error at cmake/modules/verify-toolchain.cmake:79 (find_package):
  Could not find a configuration file for package "Zephyr-sdk" that is
  compatible with requested version "0.15".

  The following configuration files were considered but not accepted:

Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
2022-08-31 14:32:57 -03:00
Bartosz Bilas be7e2b1a54 ci: zephyr: switch to CI image 0.24.2
Let's bump CI image to be up-to-date with the upstream.

Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
2022-08-31 14:32:57 -03:00
Maciej Perkowski 749bc31c8b workflow: Add workflow verifing integration with the upstream Zephyr
During the workflow a Zephyr repository is checked out (by default
main, but any version can be given when workflow is triggered
manually) and west update is run according to Zephyr's manifest.
However, the MCUboot version is then replaced by checking out
MCUboot main (triggered by push or cron), PR's head (triggered by
a PR to MCUboot) or custom SHA (manual trigger). Next, twister is
called for tests/builds in locations given in the workflow
(test_paths).

Signed-off-by: Maciej Perkowski <Maciej.Perkowski@nordicsemi.no>
2022-03-14 16:38:09 -06:00
Almir Okato 42e679d60a espressif:esp32s3: Add esp32s3 initial support
ESP32-S3 target and related files added to the Espressif port.

Signed-off-by: Almir Okato <almir.okato@espressif.com>
2022-01-26 20:52:04 -03:00
Gustavo Henrique Nihei d6e98106b6 espressif: Improve CI script for targetting multiple chips at once
This enables using "espressif_run.sh" locally for a quick validation
that the build passes for multiple Espressif targets.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-12-29 09:19:02 -03:00
Gustavo Henrique Nihei e571855f58 ci: Define concurrency groups for cancelling duplicate jobs
This commit will force running jobs of a given PR to be cancelled once
the same branch is updated, avoiding the CI wasting time testing
outdated content.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-12-20 09:20:30 -03:00
Gustavo Henrique Nihei 67b73d3c79 espressif: Add CI jobs for Secure boot enabled images
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-12-20 09:20:14 -03:00
Gustavo Henrique Nihei 7bfd14bbc5 sim: Fit unit tests to larger write align values
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-12-16 13:19:12 -07:00
Gustavo Henrique Nihei 38453f679c ci: Enable build of espressif port for supported chips
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-11-04 06:32:43 -03:00
Fabio Utzig 14c785b716 ci: add encrypted image RAM load test
Signed-off-by: Fabio Utzig <utzig@apache.org>
2021-10-07 14:23:51 -03:00
Fabio Utzig 7aa1c87dd8 ci: add FIH hardening tests to workflows
Add workflows to run FIH tests using GH actions. Update scripts to add
parsing of FIH parameters from a env matrix and disable docker caching
when running on GH.

Signed-off-by: Fabio Utzig <utzig@apache.org>
2021-09-27 14:23:19 -03:00
David Brown d505bcf99d ci: Add multiimage ram-load and direct xip tests
Now that these are supported, add tests for them to regular CI.

Signed-off-by: David Brown <david.brown@linaro.org>
2021-07-19 11:22:13 -06:00
David Brown fb40f0c5f5 ci: Add workflow tests for direct-xip and ram-load
Although there are no tests for these cases, the configurations now are
built.  Enabling them in CI will ensure they continue to build.

Signed-off-by: David Brown <david.brown@linaro.org>
2021-07-19 11:22:13 -06:00
David Brown 8abacc834b workflow: Back off stale bot a bit
Change the stale bot to 180 days before initial flag.  In addition,
avoid issues entirely that have the 'someday' label applied.

Signed-off-by: David Brown <david.brown@linaro.org>
2021-06-25 12:53:49 -06:00
David Brown 434bca4fe3 github: Add workflow to mark stale issues
This workflow will add a 'stale' label to any issues that haven't been
modified in 60 days, and then after an additional 14 days, will close
the issue.

The template was copied from Zephyr.

Signed-off-by: David Brown <david.brown@linaro.org>
2021-05-19 14:47:41 -06:00
Salome Thirot 7084b2ff9c Workflow: enable AES256 image encryption tests
Signed-off-by: Salome Thirot <salome.thirot@arm.com>
2021-05-18 07:25:12 -03:00
David Brown fe0bfcfba9 Migrate master->main
Change references in CI and docs from 'master' to 'main' as the primary
branch has been renamed.

Signed-off-by: David Brown <david.brown@linaro.org>
2021-05-14 14:56:39 -06:00
Fabio Utzig c932b32ab0 workflows: enable Mbed TLS based EC backend tests
Enable sig-ecdsa-mbedtls and enc-ec256-mbedtls simulator tests.

Signed-off-by: Fabio Utzig <utzig@apache.org>
2021-05-06 21:05:47 -03:00
David Brown 218aee74a0 workflow: Test the Mbed TLS ECDSA configuration
Test the use of Mbed TLS with ECDSA in the simulator for the workflow
testing.

Signed-off-by: David Brown <david.brown@linaro.org>
2021-02-23 10:29:31 -07:00
Fabio Utzig 7bf5179101 ci: add caching for imgtool pip packages
Cache python dependencies for faster install and test times.

Signed-off-by: Fabio Utzig <utzig@apache.org>
2021-02-12 09:28:47 -03:00
Fabio Utzig c1b2983be0 ci: allow imgtool publishing from release branches
Allow imgtool publishing to pypi.org when versions are update on the
release branches.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
2021-01-13 16:53:07 -03:00
Fabio Utzig d2122bccc5 ci: fix signed-off-by checks in master
Only check signed commits for PRs.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
2020-11-12 16:42:58 -03:00
Fabio Utzig 6dd29072dc ci: run sim and mynewt also on master branch
Sim and Mynewt workflows were only running on pull requests, while they
should also run when new commits are pushed to master.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
2020-11-12 13:20:56 -03:00
Fabio Utzig 0be390e08e ci: update workflows names and add more badges
Fix workflows names on yaml root to be able to use them to refer to the
workflow. Add badges for pypi, workflows and license.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
2020-11-12 12:39:03 -03:00
Fabio Utzig c06694e25c ci: move imgtool publishing to GH workflows
Disable imgtool publishing on Travis; update scripts to work on both
Travis and GH; add GH workflow for publishing.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
2020-11-10 14:19:05 -03:00
Fabio Utzig 0d02976d56 workflows: enable bootstrap in swap-move
Also enable bootstrap in one of the swap-move tests.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
2020-10-05 17:11:14 -03:00
Fabio Utzig af48fcea16 ci: re-enable signed-off-by check on workflows
Enable commit signed-off-by check like previously done on Travis-CI.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
2020-09-29 16:22:58 -03:00
Fabio Utzig 10c97baa77 ci: split slow tests
Allow slow tests to run as separate jobs, this should speed up CI run.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
2020-09-26 07:47:17 -03:00
Fabio Utzig d8e2efdb01 ci: sim: rename workflow
Rename workflow to "sim"

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
2020-09-26 07:47:17 -03:00
Fabio Utzig 61a6132cfa ci: mynewt: remove non-required features
Mynewt testing does not need git submodule so avoid cloning them. Remove
MULTI_FEATURE environment variable only used by sim.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
2020-09-26 07:47:17 -03:00
Fabio Utzig 78a9fd2a40 workflows: run on PR only
Remove option to run on push because it is triggering two runs for each
test for all PRs.

Signed-off-by: Fabio Utzig <fabio.utzig@nordicsemi.no>
2020-09-26 07:47:17 -03:00
David Brown 5e3b066e0a github: Add workflow to test mynewt builds
This reproduces the CI test build for Mynewt that is currently run by
Travis.

Signed-off-by: David Brown <david.brown@linaro.org>
2020-09-25 09:13:30 -03:00
David Brown 2d99cba4f2 github: Add workflow test for simulator
This adds a github workflow test that reproduces the same behavior as
the current travis workflow test (for the simulator).  Most of the work
is done by support scripts, and it is the list of tests that is
duplicated from the .travis.yaml file.

Signed-off-by: David Brown <david.brown@linaro.org>
2020-09-25 09:13:30 -03:00