From: Jakub Ružička Date: Thu, 16 Nov 2023 14:06:02 +0000 (+0100) Subject: CI: add pkg:arch job for Arch linux X-Git-Tag: v6.0.5~5^2~1 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fenvironments%2Fdocs-develop-ci-a-0lthab%2Fdeployments%2F2921;p=thirdparty%2Fknot-resolver.git CI: add pkg:arch job for Arch linux makepkg refuses to run as root so we need to run apkg build as a non-root user. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 674846468..0798466e5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -582,6 +582,21 @@ obs:odvr: - apkg install --build-dep - apkg test --test-dep +.pkg_test_user: &pkg_test_user + <<: *pkg_test + script: + - apkg info cache | grep archive/dev + - apkg build-dep --test-dep + - apkg make-archive + - chgrp -R test . + - chmod -R g+rwX . + - find -type d -exec chmod g+s {} + + - git config core.sharedRepository group + - sudo -u test git config --global --add safe.directory '*' + - sudo -u test apkg build + - apkg install + - apkg test + .pkg_test_deb: &pkg_test_deb <<: *pkg_test <<: *pkg_deb_extras @@ -635,6 +650,10 @@ pkg:alma-9: <<: *pkg_test image: $CI_REGISTRY/packaging/apkg/full/alma-9 +pkg:arch: + <<: *pkg_test_user + image: $CI_REGISTRY/packaging/apkg/full/arch + # RHEL 8 derivatives would need more work due to *default* python being old #pkg:rocky-8: # <<: *pkg_test