summaryrefslogtreecommitdiff
path: root/.github
Commit message (Collapse)AuthorAgeFilesLines
* CI: Sort build architectures in alphabetical orderJeffery To2023-09-011-12/+12
| | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit 06b7d9b665d6299571a305b49e1bc159290d16cd)
* CI: add concurrency rules to skip redundant buildChristian Marangi2023-09-011-0/+4
| | | | | | | | Add concurrency rules to skip redundant build to skip extra build test on force push on pull request. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit 5aa683be13c9b1f4a2bdb09ec0481b7cd546dd77)
* CI: Do package run-tests only if target packages were builtJeffery To2023-09-011-3/+14
| | | | | | | | | | | Currently, the package run-test phase will fail for PRs that only add/update host-only packages, as no target packages (*.ipk) are built. This checks if any target packages are built before attempting the run-tests. Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit 299ee2b1cfd20a7c9d31e8024b4333e8da035af3)
* CI: Run "apt-get update" before installing signify-openbsdJeffery To2023-09-011-0/+1
| | | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit 89cf0d561977c028b45e5ab6db1b34dab27b9a11)
* CI: Enable runtime_test for mips_24kcVan Waholtz2023-09-011-2/+4
| | | | | Signed-off-by: Van Waholtz <brvphoenix@gmail.com> (cherry picked from commit 28d204148a7cad8f1ee903bf6af4dae234b28119)
* cache-domains: added pre-test.sh CI stepGerard Ryan2023-09-011-2/+16
| | | | | | | | | | | | | Some packages variants have conflicting dependencies with the base packages and the CI test will fail to install before anything can be done by the packages to setup the system for install. This change adds a pre-test.sh that runs before the install so things like the default libustream variant can be swapped out as shown in the updated cache-domains. Signed-off-by: Gerard Ryan <G.M0N3Y.2503@gmail.com> (cherry picked from commit 61997c86b01c83320a2cbb1b490941a8af741253)
* CI: Add local feed for CI-built packagesJeffery To2023-09-012-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | To test each package, the CI-built target package (ipk) file is installed, but currently the target package's dependencies are installed from the standard opkg feeds. There are cases when the CI-built target packages should be installed/tested together: * If a pull request contains several new packages that depend on each other, the test step will fail as the new dependencies cannot be found in the current packages feed. * If a pull request upgrades a source package that builds several target packages that depend on each other, the test step may fail due to the version/ABI mismatch between a newer target package and the older dependencies installed from the packages feed. This sets up a local feed for the CI-built packages so that dependencies are also installed from the same set of packages. Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit f818fe716ea126dd8240c9600f92e5b412d59060)
* CI: Add --autoremove, ignore removal errorsJeffery To2023-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 836b4e1c734f9705bfd8db0da0c04214c2647932 added --force-removal-of-dependent-packages but it does not do what the commit message says it does. When package A depends on package B (package B is a dependency of package A; package A is a dependent of package B), trying to remove package B while package A is installed will result in an error. Adding --force-removal-of-dependent-packages in this case will cause the removal of package B and package A (package B's dependent). But in the case of the CI testing step, it is package A that is being installed and removed. Removing package A with --force-removal-of-dependent-packages will not cause package B (package A's dependency) to be removed. This adds --autoremove to actually remove the package's dependencies. This also ignores any errors returned by opkg remove as --autoremove can sometimes falsely return an error[1]. [1]: https://github.com/openwrt/openwrt/issues/12241 Fixes: 836b4e1c734f ("github-ci: add --force-removal-of-dependent-packages") Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit 53a53b8ee38d79083ff59e656798948f9b0a7e68)
* CI: update build architecturesTianling Shen2023-09-011-5/+1
| | | | | | | | | | | Removed arc_archs - archs38 was marked as source-only [1]. Renamed powerpc_8540 to powerpc_8548 [2]. 1. https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=c01641bcc7236d2e2de3ea65444b0cf2898df351 2. https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=2cad88b99fdae9766de84e6c1cb56f111eb53748 Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> (cherry picked from commit 7928f7d3990c7bae097224d90c28590a45405686)
* ci: only comment AUTORELEASE deprecation if existsPaul Spooren2023-09-011-2/+7
| | | | | | | If it doesn't exists, don't confuse the contributors. Signed-off-by: Paul Spooren <mail@aparcar.org> (cherry picked from commit b3b01af314ec675b0b2ee0497a7b9c90d2e9e631)
* CI: deprecate $(AUTORELEASE) via commentsPaul Spooren2023-09-011-0/+86
| | | | | | | | | | | | | | Autorelease causes some issues like heavy bandwidth usage as well as non-deterministic package releases whenever someone doesn't use the full git log. With this comment all modified packages are checked and if they use the autorelease feature, kindly comment to the user to change that. Signed-off-by: Paul Spooren <paul.spooren@rhebo.com> [ move check to separate workflow to handle ci limitation ] Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit c993ee8a893c04baef602574ca9353ce4c72e11e)
* ci: change default packagesJosef Schlehofer2023-09-011-1/+1
| | | | | | | | | | | Since this file was taken from packages repository, it tries to compile packages from that repository as fallback if changes are not detected. Let's change these packages to some, which are present in this repository, so they will be compiled as test. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com> (cherry picked from commit c9a8f2d03226191111b95890302cb7e1ff18c11e)
* github-ci: error on any shell errorsAlois Klink2023-09-011-1/+5
| | | | | | | | | | | | | Enable `errexit` and `nounset` [POSIX shell options][1] in `.github/workflows/entrypoint.sh` so that the script fails if any command within the script fails. [1]: https://pubs.opengroup.org/onlinepubs/9699919799//utilities/V3_chap02.html#set Reported-by: Marius Dinu <m95d+git@psihoexpert.ro> Fixes: https://github.com/openwrt/packages/issues/19953 Signed-off-by: Alois Klink <alois@aloisklink.com> (cherry picked from commit 03ca0722f73c8121521ff59ca9a4ad6358b6a262)
* ci: update github actions to v3Christian Marangi2023-09-012-4/+4
| | | | | | | | | Update checkout and upload-artifact action to v3 to mute nodejs deprecation warning. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit 52570d4242822e3db678f5484c2ca3e72f485d52) (cherry picked from commit 5d87b956975034d74a40385646a7d358722c0eb3)
* ci: Use openwrt/gh-action-sdk@v5Jeffery To2023-09-011-1/+1
| | | | | | | | The previous build errors with v5 have been fixed. This version builds packages as a normal user instead of as root. Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit e2d72c57756751230d61bd7a738a35dad912e644)
* ci: use openwrt/gh-action-sdk@v4Petr Štetiar2022-03-301-1/+1
| | | | | | | | | | | In order to use feeds from GH mirror for GH actions, thus saving a lot of resources being wasted. While at it fix whitespace issue. Signed-off-by: Petr Štetiar <ynezz@true.cz> [applied to routing feed] [whitespace issue not existing in routing feed] Signed-off-by: Nick Hainke <vincent@systemli.org> (cherry picked from commit 5702d2e40bff2fa45b4f628c4c7a9acdcf6d1e31)
* CI: update SDK action to v3Paul Spooren2022-03-301-1/+1
| | | | | | | | | No also check mirror hashes and badly formated init files Signed-off-by: Paul Spooren <mail@aparcar.org> [applied to routing feed] Signed-off-by: Nick Hainke <vincent@systemli.org> (cherry picked from commit 2134c56d12ced1c5b191b35e18f8330384860f15)
* CI: fix runtime testing for non master branchPaul Spooren2022-01-141-1/+1
| | | | | | | The runtime testing always ran on master branch aka snapshots since the branch wasn't passed over to the container execution! Signed-off-by: Paul Spooren <mail@aparcar.org>
* issuetemplate: reference foreign reposSven Roederer2021-06-171-1/+1
| | | | | As we are the routing-feed, we don't care for packages of the base-, luci- and packages-feed. Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
* CI: fix building multi-arch-test-buildNick Hainke2021-06-031-1/+1
| | | | | | | The sed is adding the package name as "PKGNAME/" and does not remove the "/". That is why the buildchain currently fails. Signed-off-by: Nick Hainke <vincent@systemli.org>
* CI: copy .github from openwrt-packagesNick Hainke2021-06-027-0/+279
Just copy .github from openwrt enabling: - checking of formalities - checking of build - issue template - pr template Signed-off-by: Nick Hainke <vincent@systemli.org>