Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Zephyr, test against known working version and also the very latest on main #623

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

wmamills
Copy link
Collaborator

This PR brings open-amp up to parity with libmetal with regard to Zephyr CI testing

open-amp did not have the latest SDK discovery code nor the sdk install reduction of verbosity that were already in libmetal so this PR is a bit bigger than the one for libmetal but the end result is the same.

The CI does not need to strictly adhere to the coding rules.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
@wmamills wmamills requested a review from arnopo October 16, 2024 18:16
@wmamills wmamills marked this pull request as draft October 16, 2024 18:19
@wmamills
Copy link
Collaborator Author

@arnopo I have marked this as RFC until your PR goes in. I will then rebase and repush it and remove the RFC.
This PR should look the same but I will remove any merge conflicts with yours.

@wmamills wmamills self-assigned this Oct 16, 2024
Use last version of checkout action.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
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>
Build system reference applications instead of open-amp deprecated
applications.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
Copy link
Collaborator

@arnopo arnopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need few updates to take into account the update of the open-amp path introduce in #619

runs-on: ubuntu-latest
steps:
- name: Checkout open-amp
uses: actions/checkout@v4
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to add

      with:
        path: open-amp

path: libmetal
- name: build for Zephyr (Known Good)
id: build_Zephyr
uses: ./.github/actions/build_ci
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uses: ./open-amp/.github/actions/build_ci

runs-on: ubuntu-latest
steps:
- name: Checkout open-amp
uses: actions/checkout@v4
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

      with:
        path: open-amp

path: libmetal
- name: Zephyr Latest
id: build_Zephyr_latest
uses: ./.github/actions/build_ci
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uses: ./open-amp/.github/actions/build_ci

Reduce the console output for the Zephyr sdk install.
This now matches the intent of libmetal but fixes the wget option.

Signed-off-by: Bill Mills <bill.mills@linaro.org>
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>
@wmamills wmamills requested a review from arnopo October 17, 2024 17:37
@wmamills wmamills marked this pull request as ready for review October 17, 2024 17:37
@wmamills
Copy link
Collaborator Author

@arnopo I rebased this on your CI update. As yours is not in main yet you will see your commits in this PR but they should disappear after you merge your PR. (Let me know if there is any issue with that.)

I took the "draft" mark off this now. It should be ready to go as soon as you accept your PR.

I went ahead and clones openamp-system-reference for the zephyr jobs to keep things consistent. The zephyr build step does not use the openamp-system-reference directory right now but it may in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants