Commit Graph

54 Commits

Author SHA1 Message Date
Evan Goode d366941804 ci: Remove "Package Build" GitHub Action
We would like to switch to exclusively using Packit for building and
testing pull requests, so we are retiring this GitHub Action workflow.
We will want to configure Packit to check that DNF5 compiles with both
GCC and clang, like the Package Build action did.

In order to fully disable the action, this commit must be applied on
each branch in the upstream DNF5 repository. Otherwise, the action might
be triggered by a pull request to some stale branch.
2025-06-12 19:42:57 +00:00
Jan Kolarik c01f2fde63 prepare-release: Use new v1.2 action with 4-digits version format 2024-05-28 06:51:09 +00:00
Jan Kolarik 074aed615a Re-enable clang builds after API changes 2024-04-18 04:34:52 +00:00
Nicola Sella 218d91a0c8 Disable clang builds until dnf5 outputs are fixed 2024-02-20 15:01:11 +00:00
Petr Písař 6b0e3c26c7 CI: Upgrade action/checkout to a version with Node.js 20
GitHub CI warns that Node.js 16 is deprecated:

    CCache Build (clang)
    Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

This patch moves action/checkout from v3 to v4 which is based on
Node.js 20. It's fully compatible
<https://github.com/actions/checkout/compare/v3...v4.0.0>.
2024-02-05 07:28:00 +00:00
Nicola Sella 31f7d898e9 Remove all copr builds since tmt will take care of them 2023-12-11 14:38:00 +00:00
Nicola Sella 3fa303db01 Limit caching in GH workflows to separate PRs 2023-12-11 14:36:54 +00:00
Nicola Sella a357af7df6 Fix compiler choice in github workflows 2023-12-07 07:29:16 +00:00
Marek Blaha 906808bc09 action: Only commit translations on change
When there are no changes in weblate, do not attempt to add a commit.
2023-11-24 13:20:37 +00:00
Marek Blaha ca3c428ec0 github: Do not run scheduled workflow on forks 2023-11-22 13:10:19 +00:00
Aleš Matěj d6053a7d5f Workflow for *.pot sync exits if only creation dates were changed
Otherwise the dnf5-l10n repo might contain mostly empty commits.
2023-11-22 09:36:38 +00:00
Marek Blaha 52bdfc15d5 Add translations update to prepare release workflow
Now also new translations are added as a separate commit to release pull
request.
2023-11-21 08:12:08 +00:00
Marek Blaha c6a2556e02 Github action to retrieve translations from weblate
This action clones weblate repository, retrieves fresh translations from
it and commits the changes.
2023-11-21 08:12:08 +00:00
Marek Blaha fe3837aff4 Workflow for *.pot synchronization to weblate
This workflow runs periodically once a day, but it's also possible to
run it ad hoc from the GitHub web interface. It consists of the
following steps:

- Clone the dnf5 repository.
- Build fresh *.pot files using the gettext-potfiles CMake target.
- Clone the dnf5-l10n synchronization repository.
- Each *.pot file represents a Weblate component. For each file, a
  directory is created (if it doesn't already exist), the *.pot file is
  copied there, and a PATH file with the actual location of the component
  in the dnf5 source tree is created.
- The new version is then directly pushed into the dnf5-l10n repository.

The dnf5-l10n repository serves the purpose of reducing commit traffic
with new translations coming from Weblate. This approach helps us
maintain a cleaner dnf5 Git history. New translations from Weblate will
be pulled automatically as part of the prepare-release GitHub workflow.

Thanks to cockpit team for inspiration!
2023-11-21 08:12:08 +00:00
Nicola Sella 8598828e47 Fix typo in github workflows 2023-11-03 17:01:04 +00:00
Nicola Sella 18eeb39731 Document target 2023-10-10 14:05:00 +00:00
Nicola Sella 11eead1a56 Change trigger for jobs that require COPR to run 2023-10-10 14:05:00 +00:00
Nicola Sella b00d940e01 Update workflow triggers 2023-09-20 12:30:19 +00:00
Nicola Sella 63600a5cd0 Move Package Build steps to the same file 2023-09-20 12:30:19 +00:00
Nicola Sella 40f55e4b9a Add condition to run a clean build only when cache fails 2023-09-20 12:30:19 +00:00
Nicola Sella beba509a0f Add a dispatch workflow to clear all cache 2023-09-20 12:30:19 +00:00
Nicola Sella 036f3e4396 Add ccache Github workflow
This workflow aims to replace the current ci action[1]
exploiting ccache to run cmake builds quicker.

It shares cache for the same PRs and for the branch
each PR is opened against.

[1]: https://github.com/rpm-software-management/dnf5/blob/main/.github/workflows/ci.yml#L9-L45
2023-09-20 12:30:19 +00:00
Nicola Sella 157b874ad5 Update to prepare-release@v1.1 2023-08-04 11:38:50 +00:00
Aleš Matěj 49d3b745dd Add dnf5-unstable copr repo to dnf5 CI copr builds
This is needed because since rpm-software-management/dnf#1937
new dnf-data (in dnf-nightly) requires `/etc/dnf/dnf.conf` but in rawhide
and dnf-nightly nothing provides that. It is provided by new libdnf5
currently only present in dnf5-unstable.
2023-06-07 13:33:40 +00:00
Marek Blaha d7892e1983 Bump Fedora versions in CI workflow
Fedora 36 is not supported by copr any more.
2023-05-23 07:35:17 +00:00
Nicola Sella 2a3d94bb61 update release action with custom dnf5 scripts
dnf5 uses global macros at the beginning of dnf5.spec that need to be
updated with version numbers.
VERSION.cmake needs also to be updated
2023-05-16 13:05:25 +00:00
Nicola Sella 35af02a50e Add merge group to workflows 2023-05-03 12:43:57 +02:00
Nicola Sella 3eff833594 Add workflows prepare-release and do-release 2023-05-02 17:13:13 +02:00
Nicola Sella 4f57689d40 Fix packit configuration 2023-04-18 16:22:22 +02:00
Nicola Sella 3a4c00a909 Add packit action to do auto-release 2023-04-18 12:02:18 +02:00
Nicola Sella b9f56edbc9 Add pre-commit to github actions 2023-03-20 12:32:30 +01:00
Nicola Sella 314b36c30b Remove clang-format workflow 2023-03-20 12:32:30 +01:00
Marek Blaha 60bdc4a246 CI: Move clang-format back to dnf-ci-host
Now when the dnf-ci-host is back on the latest Fedora we can revert this
temporary workaround.
2023-02-20 09:52:54 +01:00
Nicola Sella 1602a9faf4 Update chroots, drop f35 2023-01-05 15:57:02 +01:00
Marek Blaha 743f334b97 Do not set explicit Fedora release for CI
Let's use the default taken from ci-dnf-stack Dockerfile.
2022-08-17 14:11:18 +02:00
Marek Blaha 9324e98e32 Run clang-format check on vanilla Fedora 35
Currently the workaround for Fedora 36 clang-format issue
(https://github.com/llvm/llvm-project/issues/55260) is in the
dnf-ci-host container (see
23e4400f4f
for details).

This PR makes the workaround local to "Clang Format" job. It enables us
to move "DNF Integration Tests" job back to the latest Fedora.
2022-08-17 09:49:05 +02:00
Jaroslav Mracek 2d23a634cb Rename dnfdaemon to dnf5daemon
It is aligned with rename of dnf and microdnf to dnf5. It also remove
a confusion with another component written Python - dnfdaemon.
2022-08-09 13:33:19 +02:00
Aleš Matěj 1dc4500bf9 Fix for gh actions issue caused by git CVE-2022-24765
More details: https://github.com/actions/checkout/issues/766

This is needed because we run in ./ (we do not cd into any directory
created by our current user), this is problematic because the working
directory is owned by the github actions runner user not our current
container user and git doesn't allow that since the mentioned CVE.

We have to explicitly state it is a safe directory.
2022-08-09 13:33:19 +02:00
Jaroslav Mracek 14d577ebcc Rename microdnf to dnf5
DNF5 is a better name for the new component, rather then to use a name
of already known component.
2022-08-09 13:33:19 +02:00
Lukáš Hrázký e97fc6e708 CI: Add Fedora 36 to Package Build 2022-08-09 13:33:18 +02:00
Lukáš Hrázký 8b4ad3a50d .github/workflows/clang-format: Do a rebase before clang-format run
The target branch may contain clang-format issues which can later be
fixed. Do a rebase so that we are checking the latest state of the
target branch.
2022-08-09 13:33:18 +02:00
Lukáš Hrázký 10adb2149a CI: Add a clang-format check to GitHub Actions 2022-08-09 13:33:17 +02:00
Lukáš Hrázký f25ff8b609 CI: Build only for f35 and higher in Package Build
In preparation for merging new rpm transaction callbacks which require
rpm >= 4.17.
2022-08-09 13:33:16 +02:00
Aleš Matěj eaafdd445f Use overlay dedicated for dnf5 when running dnf5 CI
This way we don't build dnf, plugins or libcomps unnecessarily
2022-08-09 13:33:16 +02:00
Aleš Matěj c6c73ad08b Run dnfdaemon integration tests as a part of CI 2022-08-09 13:33:16 +02:00
Lukáš Hrázký 30e42daf20 CI: Run on Fedora 35 2022-08-09 13:33:16 +02:00
Lukáš Hrázký c1df188989 CI: Add dnf-nightly repo to the package-build Copr build 2022-08-09 13:33:16 +02:00
Lukáš Hrázký 849abdc83f CI: Run microdnf5 CI stack tests on PRs 2022-08-09 13:33:15 +02:00
Lukáš Hrázký e6b5d0847c CI: Take the name of the repository from upstream
Instead of the name of the fork, which can be different.
2022-08-09 13:33:13 +02:00
Lukáš Hrázký bc427d53e7 CI: Build with clang in a matrix with gcc build 2022-08-09 13:33:13 +02:00