Commit Graph

16 Commits

Author SHA1 Message Date
Nicolas Dechesne
32988ebd42 .github/master: fix up secrets
secrets: inherit can only be used with workflows that call reusable
workflows in the same organization. In this case since we reuse a
workflow from 96boards, we need to be more explicit.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-11-08 23:56:00 +00:00
Nicolas Dechesne
625ecb4ebc .github/workflows/premerge: include an RPB build in the PR test
Add an additional OE RPB build for each new meta-qcom PR, to ensure
that the PR is not breaking the OE RPB build.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-11-08 23:12:29 +00:00
Vishal Bhoj
660b25c185 CI: tuxsuite: Remove wrong entry in artifacts field
artifacts now accepts a list of path relative to deploy_dir
to publish after the build. All the files from deploy_dir
are published if artifacts field is an empty list.

Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2022-09-05 16:01:11 +05:30
Nicolas Dechesne
746275b4f3 .github/workflows/push: fix ref type used in the tux plan
Tux had a convenient bug that allowed us to use a 'ref' type with a
SHA. This bug was fixed, so we need to make sure that we use a type
'sha' in the Tux plan when we use a SHA value.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-08-23 13:07:31 +02:00
Nicolas Dechesne
a754ef989f .github: update Poky git URL
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-08-19 09:30:12 +02:00
Nicolas Dechesne
8272dda170 .github: daily builds for master, kirkstone and dunfell
As per Github Actions documentations, "Scheduled workflows run on the
latest commit on the default or base branch". So let's implement the
daily build in the default branch which triggers plans for all
supported branches.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-06-20 08:57:11 +02:00
Nicolas Dechesne
718b868584 .github: add ref_type param
For daily builds, using the 'schedule' trigger, the default branch is
being used only. So we need to be able to trigger builds by 'branch'
instead of by 'ref'. ref_type is a new input parameter, so that
calling jobs can decide to use a ref (SHA) or a branch.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-06-20 08:57:11 +02:00
Nicolas Dechesne
2910585297 github: add daily test build
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-06-17 16:20:44 -07:00
Nicolas Dechesne
3e498e3b93 .github: do not hardcode meta-qcom in the workflows
When testing github workflows, it's convenient to use a secondary repo
fork, so let's make sure we don't hardcode the repo name in the
workflow, so that they work in a forked repo (such as meta-qcom-test).

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-06-02 00:20:06 +02:00
Nicolas Dechesne
517e84f4d8 .github: switch to TuxOE plans
Use TuxOE plans to submit multiple jobs at once, instead of matrix
build since it uses one Github Action job for each build.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-06-02 00:20:06 +02:00
Nicolas Dechesne
509265b915 .github: add build for push actions
In addition to testing pull_request events, also test push events. In
order to effectively reuse the template job, a few additional changes
were made, especially the addition of a couple of input params.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-05-11 12:23:22 +02:00
Dmitry Baryshkov
dfad72971c premerge.yml: also test rootfs and firmware initramfs
Add initramfs-rootfs-image and initramfs-firmware-image to test that occasional changes do not break them too.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2022-05-06 15:09:45 +03:00
Nicolas Dechesne
574612b3e1 .github: set up reusable workflow
Instead of duplicating the same workflow on each branch, let's create
a resuable workflow in the main branch, and reuse it from here.

We leave a few parameters as inputs which need to be set by jobs using
this reusable workflow.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-05-06 12:25:04 +02:00
Nicolas Dechesne
f1ff276991 .github: use pull_request_target to allow PR testing
When using pull_request event, the workflow is run in the context of
the PR, so it's potentially untrusted code from a third party. As such
Github Action secrets are not available for security reason. The PR
build test workflow requires a secret (TUXSUITE TOKEN). So instead, we
can use pull_request_target which ensures the workflow runs in the
context of the base of the PR, e.g. trusted/merged code. In this case
the repo secrets can be used in the workflow.

We just need to carefully set the 'ref' we use in the tuxOE job
definition, which needs to refer to the PR.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-04-27 00:38:29 +02:00
Nicolas Dechesne
ae69de42b1 .github: build test PR for qcom-armv7a
This is a new machine, let's add it to the PR build test.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-04-25 13:30:47 +02:00
Nicolas Dechesne
41d1c0655b .github: initial GitHub Actions workflow for premerge build test
This CI has been implemented on Linaro CI so far, let's migrate to
GitHub Actions. The build uses Linaro Tuxsuite for OE/YP which
provides a cloud based infrastructure.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2022-04-25 13:18:02 +02:00