Commit Graph
36 Commits
Author SHA1 Message Date
Arnaud Pouliquen 59e843f3ef CI: Fix compliance check folder bypass
On GitHub, this check is tagged as "Required."
However, if a PR only affects the following folders:.github, docs,
scripts, or cmake, the check is not executed (to avoid false positives),
resulting in the status "execution pending" + "required" on GitHub.

This commit forces the execution of the check but bypasses the
compliance.xml test when the PR only affects the listed folders.

If at least one update affects other folders, the compliance check
runs as usual.

In addition, the cmake folder is removed from the list, as there is
no reason to skip compliance tests on it.

Signed-off-by: Arnaud Pouliquen arnaud.pouliquen@foss.st.com
2026-01-26 15:04:34 +01:00
Arnaud Pouliquen 10768d0c6f CI: Update to Zephyr 4.3 and use default associated sdk
- bump to Zephyr 4.3
- use west packages pip --install
- use "west sdk install" command to install the expected sdk version.
- only install arm-zephyr-eabi compiler as build tested only on
  arm targets

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2025-12-17 19:07:54 +01:00
Arnaud Pouliquen 31acf64533 CI: fix No space left on device message
Add jlumbroso/free-disk-space action to clean-up the workspace
before running action.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2025-10-15 16:25:26 +02:00
Bill Mills 516e1b2147 CI: update known working version of Zephyr and its SDK
These are the current versions and have already been tested via the
Zephyr health check job.

Signed-off-by: Bill Mills <bill.mills@linaro.org>
2025-04-17 09:05:40 +02:00
Arnaud Pouliquen bc1a7efba2 CI: fix zephyr test on Zephyr for lpcxpresso54114 board
The name of the board has been updated since the Zephyr commit:
  d8cfa6fb2916 ("boards: nxp: convert lpcxpresso54114 to hwmv2")

Fix the build command according to the new name.
The update is compatible with the Zephyr v3.7.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2025-01-08 09:16:19 +01:00
Bill Mills 3541b5771b CI: Do Zephyr build tests on known good and latest versions
Allow Zephyr testing to either use locked known good values
or the very latest versions.

This brings open-amp to parity with libmetal.  Open-amp did not have the
SDK URL discovery code so that was added here as part of this.

The known good versions are best for PR checking as if the build fails
it is almost always the PR itself that broke it.

The latest version is good for periodically checking compatibility with
the very latest Zephyr changes.

For now we run both on pushes and PRs.

We also run main against the latest zephyr check weekly as a look ahead.

Signed-off-by: Bill Mills <bill.mills@linaro.org>
2024-10-18 18:11:03 +02:00
Bill Mills 6a5fdf1b1f CI: reduce zephyr sdk install verbosity
Reduce the console output for the Zephyr sdk install.
This now matches the intent of libmetal but uses the documented wget
option.

Signed-off-by: Bill Mills <bill.mills@linaro.org>
2024-10-18 18:11:03 +02:00
Arnaud Pouliquen a69881f131 CI: Update CI to build system reference applications
Build system reference applications instead of open-amp deprecated
applications.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2024-10-18 09:15:36 +02:00
Arnaud Pouliquen 173d5cbb28 CI: Update open-amp path
To have a coherent directory hierarchy, move the open-amp git from root
to the "./open-amp" directory.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2024-10-18 09:15:36 +02:00
Arnaud Pouliquen aa4040f3ba CI: Update checkout action to V4
Use last version of checkout action.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2024-10-18 09:15:36 +02:00
Arnaud Pouliquen 2e6cef5739 CI: Ignore .github path for compliance check
The CI does not need to strictly adhere to the coding rules.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2024-10-18 09:15:36 +02:00
Arnaud Pouliquen e5cc3a3863 CI: Update for Ubuntu 24.04
Update CI to work with 24.04.

* Lock to 24.04 so we control when to change
* Update locale and timezone to work for 24.04 or 22.04
  * 24.04 creates these files if not already there but 22.04 does not
  * Keep existing work around for 22.04 but make it work if already there
* use venv
  * Breate a virtual environment isolated from the packages in the base
    environment
  * Inspired from zephyr build environment
* Use pip3 everywhere removing global and --user installation
* Add section to README about desktop testing
* Also fix usage formatting in README

Co-developed-by: Bill Mills <bill.mills@linaro.org>
Signed-off-by: Bill Mills <bill.mills@linaro.org>
Co-developed-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2024-05-07 09:20:30 +02:00
Arnaud Pouliquen 4e13c09356 github action: Fix stales action to not close PR/issue after 7 days
By default the action closes the PR or issue 7 days after adding the
stale label.

The expected behavior is that the pull requests and issues will never be
closed automatically by the bot.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2023-10-25 14:49:46 +02:00
Arnaud Pouliquen 5fce292fd4 github action: add stales action
Add action to add stale label on issues and PR when no activity
during 45 days.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2023-10-13 10:31:32 +02:00
Arnaud Pouliquen ca723b8418 CI: Fix Zephyr build by updating Zephyr SDK version to 0.16.1
Update zephyr SDK to 0.16.1 to fix CI build issue:
arm-zephyr-eabi-gcc: fatal error: cannot read spec file
'picolibc.specs': No such file or directory
compilation terminated.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2023-09-14 16:15:58 +02:00
Arnaud Pouliquen dcc21e6657 CI: Fix checkpatch
The CI does not consider "check" reported by checkpatch.
This commit fixes it by:

- rebasing check_compliance.py compliance.yml to integrate Zephyr updates,
- add detection of the "check" in the report.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2023-07-10 13:33:09 +02:00
Arnaud Pouliquen fe5ac7a305 CI: update checkout action to V3
Node.js 12 actions are deprecated. Use the checkout V3
action to use Node.js 16

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2023-06-05 19:18:33 +02:00
Arnaud Pouliquen 081172c53c CI: add more build warning checks and force them to error.
Add CMAKE_C_FLAGS warnings to highlight potential issue:
"-Wall -Wextra -Wshadow -Wunused-but-set-variable"
And force warning as error with "-Werror"

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2022-11-28 18:36:41 +01:00
Arnaud Pouliquen 452510d946 CI: fix Zephyr build issue resulting from the introduction of sysbuild
"Sysbuild is a higher-level build system that can be used to combine
multiple other build systems together"

Add the option by default for all platform as it is compatible with
a single image.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2022-11-23 08:59:51 +01:00
Arnaud Pouliquen a1c64fbc77 CI: Fix Zephyr build by updating Zephyr SDK version to 0.15.0
Update zephyr SDK to 0.15.0 to fix CI build issue.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2022-09-09 18:21:27 +02:00
Arnaud Pouliquen 4728d56c85 Fix various typo with codespell
Found via `codespell -q 3 -S ./scripts/spelling.txt`

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2022-04-14 09:13:39 +02:00
Arnaud Pouliquen b90535e319 CI: add codespell support to check typos
Enable the use of codespell tool in checkpatch.pl
For this the checkpatch.pl as been partially rebased on the Linux one.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2022-04-11 09:27:06 +02:00
Arnaud Pouliquen f27850d74d CI: clean-up check on check compliance test
- Rebase check_compliance.py and compliance.yml from zephyr project
- Fix checkpatch subprocess command.
- rebase

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2022-04-11 09:27:06 +02:00
Ed Mooring f7640de1a7 CI: Update branch from "master" to "main".
Rename branch for CI and compliance checks to "main".

Signed-off-by: Ed Mooring <ed.mooring@gmail.com>
2021-12-07 18:30:22 -08:00
Arnaud Pouliquen 5d8c43acf2 CI: Fix Zephyr build by updating Zephyr SDK version to 0.13.1
Update zephyr SDK to 0.13.1 to fix CI build issue.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2021-10-04 09:36:06 +02:00
Arnaud Pouliquen da13b39262 CI: Fix Zephyr build error due to cmake version
CMake 3.20.0 or higher is required by Zephyr.
Use pip3 as recommended by zephyr project to get the last version.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2021-08-24 18:55:04 +02:00
Arnaud Pouliquen 8a9fbbe26b CI: Fix Zephyr build by updating Zephyr SDK version to 13.0
Update zephyr SDK to 0.13 to fix CI compatibility issue.
The name of the steup file has also be updated.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2021-08-10 17:21:26 +02:00
Arnaud Pouliquen f2b3fcd2cf CI: Fix Zephyr build by updating Zephyr SDK version
Update zephyr SDK to 0.12.4 to fix CI compatibility issue.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2021-06-02 13:42:42 +02:00
Arnaud Pouliquen 294ba3da95 CI: Zephyr test: copy whole libmetal directory for test
When only the libmetal/lib is copied, some files such as
VERSION or CmakeList.txt are not copied. This can lead to
a test error or false positives.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2021-05-28 10:13:55 +02:00
Arnaud Pouliquen 52c4b75d33 CI: Copy the VERSION file in zephyr openamp module
Add the new VERSION file support. Without the copy of the file the
cmake fails as no VERSION file is found in
zephyrproject/modules/lib/open-amp/open-amp/

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2021-04-26 16:06:20 +02:00
Arnaud Pouliquen b8aa68e448 CI: compliance: fix check_compliance workflow
Use older junitparser, new version is not compatible.
This patch is inspired from Zephyr project, proposed by Anas Nashif:
https://github.com/zephyrproject-rtos/zephyr/pull/31276

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2021-04-16 09:13:18 +02:00
Arnaud Pouliquen a44dbaca7e CI: compliance: fail on errors
Fail workflow in case of script crashes.

This patch is a cherry-pick of a zephyr patch implemented by
Anas Nashif:

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

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
2021-04-16 09:13:18 +02:00
Arnaud Pouliquen 0b3cf11130 CI: rearrange github workflow
Separate the workflow as done in the libmetal library.
One for the patch compliance cheks, another one
for the build tests.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
2020-10-21 12:49:20 -07:00
Arnaud Pouliquen 535d0d8926 CI: add action to build for different platforms
This patch add build tests for Linux, Arm platform and Zephyr OS.

Notice that for Zephyr, openamp and libmetal have been forked.
As consequence the associated openamp and libmetal
modules are updated and some Zephyr samples are compiled directly in
the zephyr environment.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
2020-10-21 12:49:20 -07:00
Arnaud Pouliquen 8387889dba CI: rework compliance test
The webispy/checkpatch-action does not seems to work properly.
Even if it detects coding style issue, the return state is successful.
This patch replaces the action by the compliance python script obtained
from the Zephyr project.
This script also runs gitlint to check commit messages.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
2020-10-16 12:59:07 +02:00
Arnaud Pouliquen 75a6520fe8 Create CI checkpatch test using github workflow
Create a first checkpatch test for continuous integration
this job runs the checkpatch action from
https://github.com/webispy/checkpatch-action

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
2020-04-20 14:15:39 +02:00