28 Commits

Author SHA1 Message Date
bia1708
298669e57d ci: update ci to trigger for new release branches
Update azure-pipelines.yml to run builds for release branches following
the new naming convention. Release branches now follow the format
`xlnx/release/linux-v<kernel_version>-<release>`.
Update prepare_artifacts.sh scripts to upload artifacts under
`linux-v<kernel_version>-<release>`.

Signed-off-by: bia1708 <bianca-maria.popu@analog.com>
2026-03-13 10:11:39 +02:00
Liviu Tomoiaga
cf7f213dcd ci: Cleanup workspace after upload procedure
Some checks failed
Maintenance / cherry_pick_adi (push) Has been cancelled
Maintenance / cherry_pick_rpi (push) Has been cancelled
Maintenance / assert (push) Has been cancelled
Maintenance / migrate_main (push) Has been cancelled
Kernel build / checks (push) Has been cancelled
Kernel build / build_gcc_x86_64 (push) Has been cancelled
Kernel build / build_llvm_x86_64 (push) Has been cancelled
Kernel build / build_gcc_aarch64 (push) Has been cancelled
Kernel build / build_gcc_arm (push) Has been cancelled
Kernel build / assert_checks (push) Has been cancelled
Kernel build / deploy_cloudsmith_checks (push) Has been cancelled
Kernel build / build_gcc_arm_zynq_xcomm_adv7511_defconfig (push) Has been cancelled
Kernel build / build_gcc_arm_socfpga_adi_defconfig (push) Has been cancelled
Kernel build / build_gcc_arm_zynq_pluto_defconfig (push) Has been cancelled
Kernel build / build_gcc_arm_zynq_m2k_defconfig (push) Has been cancelled
Kernel build / build_gcc_aarch64_adi_zynqmp_defconfig (push) Has been cancelled
Kernel build / build_gcc_arm_adi_versal_defconfig (push) Has been cancelled
Kernel build / build_gcc_microblaze_adi_mb_defconfig (push) Has been cancelled
Kernel build / build_gcc_nios2_adi_nios2_defconfig (push) Has been cancelled
Kernel build / compile_devicetrees (push) Has been cancelled
Kernel build / assert_build (push) Has been cancelled
Kernel build / deploy_cloudsmith_build (push) Has been cancelled
Signed-off-by: Liviu Tomoiaga <Liviu.Tomoiaga@analog.com>
2026-02-12 12:32:55 +02:00
Liviu Tomoiaga
6f3d5a4e22 ci: Run Publish_to_Cloudsmith on cloud-hosted ubuntu-latest agents
Move the Publish_to_Cloudsmith job from self-hosted agents to
cloud-hosted infrastructure to avoid disk space issues on the
self-hosted linux_default agent.

Signed-off-by: Liviu Tomoiaga <Liviu.Tomoiaga@analog.com>
2026-02-12 12:32:55 +02:00
Liviu Tomoiaga
f68757b6a4 ci: azure-pipelines.yml: add Cloudsmith upload step to Azure pipeline
Publish_to_Cloudsmith jobs run on:
  - PRs (non-fork) targeting main, next_stable, or 202* branches
  - Direct pushes to main, next_stable, or 202* branches

Signed-off-by: Liviu Tomoiaga <Liviu.Tomoiaga@analog.com>
2026-01-16 10:55:45 +00:00
bia1708
093198de4b ci: azure_pipelines: Update DTBs location
Update DTBs build location to match the changes introduced by 3b1f15d
(zynq and socfpga DTS location change). Used for later upload to
artifacts server.

Signed-off-by: bia1708 <bianca-maria.popu@analog.com>
2025-09-17 11:34:19 +03:00
Jorge Marques
52e6fed034 ci: Migrate build_check_new_file_license to GitHub Actions
Allow dual-license if is a devicetree-related file, if one of the
license is GPL-2.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
2025-08-01 14:29:28 +02:00
Jorge Marques
d50f49aaf0 ci: Remove dt_binding_check from azure, clean-up
Migrated to GitHub Actions.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
2025-08-01 14:29:28 +02:00
Jorge Marques
f367713788 ci: Remove checkpatch from azure, clean-up
Migrated to GitHub Actions.

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
2025-08-01 14:29:28 +02:00
Jorge Marques
bc7a98b01e ci: Move build_sync_branches_with_main to GitHub Actions
Use the checkout action resolved environment, detect merge commits and
choose parent, drop mirror main branch 'xcomm_zynq'

Signed-off-by: Jorge Marques <jorge.marques@analog.com>
2025-08-01 14:29:28 +02:00
bia1708
cb0a02b9e3 ci: Disable hardware tests for PRs from forks
Pipelines triggered by PRs coming from forks don't have access to the
secret variables used by the PushToArtifactory and TestHarness stages.
From a security standpoint, it makes sense to limit those pipelines to
not have access to our internal servers.
Add condition so that pipelines of PRs coming from forks skip the
PushToArtifactory and TestHarness stages.

Signed-off-by: bia1708 <bianca-maria.popu@analog.com>
2025-05-16 08:12:49 +01:00
bia1708
241ab7ecfb ci: Add Microblaze builds
Use artifacts provided by the analogdevicesinc/buildroot pipeline (the
rootfs for Microblaze) and a standalone cross compiler to run the specific
method for Microblaze from `run-build.sh` script.

Signed-off-by: bia1708 <bianca-maria.popu@analog.com>
2025-04-18 10:26:18 +01:00
bia1708
bb14ea922d ci: Add stages for Test Harness integration
Add stages:
- PushArtifacts: Run on a local agent, this stage uploads the artifacts to
  the Artifactory server
- TestHarness: Triggers the Jenkins job for the Test Harness run

Signed-off-by: bia1708 <bianca-maria.popu@analog.com>
2025-04-18 10:26:18 +01:00
Nuno Sa
d31fa3135d Merge tag 'xilinx-v2024.1' of https://github.com/Xilinx/linux-xlnx.git
This brings Linux 6.6 support. Main note on the merge is to revert to
use xilinx version of timer-cadence-ttc. This driver used to give
problems with some zynq platforms. Let's see if this is still an issue
and if so fix it __and__ upstream the fix to xilinx (so we get it in a
future merge). Other changes:

 * I2c .probe_new is now gone;
 * Small fixes in IIO_ENUM where the proper enum symbol was not being
   used (just explicit literal ir true/false booleans);
 * Completely removed usage of IIO mlock;
 * Legacy spi-engine driver using spi-controller (instead of master).
   This one can bring some bugs (we need to double check). We should
   anyways move to the new spi-engine driver in this cycle.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
2024-12-03 14:10:50 +01:00
Andreea Andrisan
838adb13a5 azure-pipelines.yml: modify branch triggers
Remove trigger for master branch because we switched to main and also
add next_stable branch as a trigger for azure build.

Signed-off-by: Andreea Andrisan <Andreea.Andrisan@analog.com>
2024-06-13 09:20:32 +03:00
Nuno Sa
a18722fcc7 azure-pipelines: add job for versal
Make sure to also test the versal build in CI.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
2024-01-30 18:10:15 +01:00
Stefan Raus
8d3d007d6f ci: update 'master' to 'main'
- Update the help and examples from upload_to_artifactory.py script
to use 'main' for uploading to artifactory server.
- Update the default branch from which to cherry-picks commits to
rpi specific branches.
- Update lib.sh script to use 'main' as libiio default branch.

Signed-off-by: Stefan Raus <Stefan.Raus@analog.com>
2024-01-09 16:42:09 +02:00
Nuno Sa
24c70ba586 azure-pipelines.yml: rename check_is_new_adi_driver_dual_licensed
As we now want to enforce new files to *not* be dual licensed, name the
job as expected by the CI script "check_new_file_license".

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
2023-10-20 12:32:43 +02:00
Nuno Sa
214d33f56e ci: make sure versal dts are built
Note that for now, only mxfe is supported in versal so we pretty much
ignore all of the other versal based  devicetrees.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
2023-05-02 08:53:51 +02:00
Cosmin Tanislav
bf224f8822 CI: run dt_binding_check against upstream tree
dt_binding_check needs to be run before upstreaming any patch,
and since we intend on upstreaming ALL (or at least most) of our
changes, it makes sense to run the same validation locally.

Our tree is too old to properly run validation, and even if it
wasn't, schema changed drastically, and it doesn't make sense
to build a schema for our tree and then build it differently for
upstream, so just run the validation against upstream.

Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
2022-11-18 10:49:50 +02:00
Nuno Sá
b50e3929c1 ci: add custom checkout for checkpatch
This commit fixes a long standing issue with the checkpatch job. The
problem is that whenever a not so old commit is referenced in a new
commit (eg: on Fixes tag), checkpatch will report that the commit is not
known even though the commit exists. The problem is that a shallow clone
with depth=50 (to speed up `git fetch`) is being done in the job and
hence checkpatch won't know about the commit because we don't have the
whole history.

This all means that we need to fetch the whole git history. To do that
while minimizing fetch times, we'll do a partial clone.  What this means is
that only the tree and blobs respective to HEAD will be fetched instead of
all trees and blobs for all existing commits. This considerably speeds up
the fetch time when compared to a full fetch (more than 50% is some tests).
As treeless clones are not supported in azure, we need to tell it to not
do any checkout and manually handle things before calling run-build.sh.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
2022-01-21 13:07:37 +01:00
Alexandru Ardelean
8e20ea8b52 ci: remove old dtb-build patches mechanism
For 4.19 we needed to apply some patches to be able to run the
dtb_build_test job properly.
We no longer need to do that, as the patches are in the mainline kernel.

So, remove the mechanism to apply patches.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
2021-01-15 17:47:47 +02:00
Alexandru Ardelean
dc1a073f85 ci: (actually) re-enable checkpatch job
This was not omitted by accident during migration to Azure, and wasn't
working because the TRAVIS_PULL_REQUEST check was still around.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
2020-12-23 13:33:34 +02:00
Alexandru Ardelean
9f0a4f10fe ci,azure-pipelines: name the important build jobs
These would probably be interesting later for some build statistics, if we
ever get interested in these.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
2020-12-16 07:43:21 +02:00
Alexandru Ardelean
7223d32554 ci,azure-pipelines: use matrix strategy for building
It reduces some duplication with regard to steps, as they need to be
defined only once.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
2020-12-14 13:12:37 +02:00
Alexandru Ardelean
916145dd63 ci,azure-pipelines: define CI=true env var for cherry-pick
When this is defined, the CSE CI user is configured as commiter for
cherry-picking.
Otherwise git complains it needs a user.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
2020-12-11 15:47:33 +02:00
Alexandru Ardelean
6de9137711 ci,azure-pipelines: persist credentials for sync build
When we want to push back to Github, we need to have the credentials
available.
Luckily in Azure Pipelines, there is a flag that does that.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
2020-12-11 15:27:43 +02:00
Alexandru Ardelean
6c58a60eab ci,azure: use wildcard matching for branches
Azure doesn't support regex matching. It does support wildcard matching,
which isn't too bad. The odds of branches prefixed with '20' being matched
is pretty low.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
2020-12-09 09:45:23 +02:00
Alexandru Ardelean
8892c02b6e ci,azure-pipelines: add initial file
This is a port of all the build rules to Azure Pipelines.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
2020-12-08 17:10:51 +02:00