Commit Graph
21 Commits
Author SHA1 Message Date
Bill Mills 4ae383d32d CI: print disk freespace at the start and end of each job
Print the freespace so we can monitor how close we are to overflow.
Also allow manual trigger for main CI action.

Signed-off-by: Bill Mills <bill.mills@linaro.org>
2026-08-26 11:51:32 +02:00
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 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 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
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 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 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 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 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