From dca7b8eb944a13c8fd1b391c9a81f5cd9d2c1268 Mon Sep 17 00:00:00 2001 From: Michael L Date: Tue, 11 Jun 2024 07:01:49 -0500 Subject: [PATCH 1/2] Update rkdeveloptool-1.32.ebuild --- dev-embedded/rkdeveloptool/rkdeveloptool-1.32.ebuild | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dev-embedded/rkdeveloptool/rkdeveloptool-1.32.ebuild b/dev-embedded/rkdeveloptool/rkdeveloptool-1.32.ebuild index d64f1a0..f12c0da 100644 --- a/dev-embedded/rkdeveloptool/rkdeveloptool-1.32.ebuild +++ b/dev-embedded/rkdeveloptool/rkdeveloptool-1.32.ebuild @@ -3,15 +3,11 @@ EAPI=7 -inherit autotools - -HASH="46bb4c073624226c3f05b37b9ecc50bbcf543f5a" +inherit git-r3 autotools DESCRIPTION="Tool from Rockchip to communicate with Rockusb devices" HOMEPAGE="http://opensource.rock-chips.com/wiki_Rkdeveloptool https://github.com/rockchip-linux/rkdeveloptool" -SRC_URI="https://github.com/rockchip-linux/rkdeveloptool/archive/${HASH}.tar.gz -> ${P}.tar.gz" - -S="${WORKDIR}/${PN}-${HASH}" +EGIT_REPO_URI="https://github.com/rockchip-linux/rkdeveloptool.git" LICENSE="GPL-2+" SLOT="0" From 7f7c1ad59c00508cb50dd55e9c0e080b1949eeb0 Mon Sep 17 00:00:00 2001 From: Michael L Date: Tue, 11 Jun 2024 07:12:07 -0500 Subject: [PATCH 2/2] Create pkgcheck-action.yml --- .github/workflows/pkgcheck-action.yml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pkgcheck-action.yml diff --git a/.github/workflows/pkgcheck-action.yml b/.github/workflows/pkgcheck-action.yml new file mode 100644 index 0000000..a4013d1 --- /dev/null +++ b/.github/workflows/pkgcheck-action.yml @@ -0,0 +1,33 @@ +name: pkgcheck +description: Run pkgcheck over an ebuild repository +inputs: + args: + description: Arguments to pass to pkgcheck + required: false + default: '' +runs: + using: composite + steps: + - name: Cache pkgcheck + uses: actions/cache@v4 + with: + path: | + ~/.cache/pkgcore + ~/.cache/pkgcheck + key: pkgcheck + + - name: Run pkgcheck + uses: docker://ghcr.io/pkgcore/pkgcheck:latest + with: + entrypoint: /usr/bin/bash + args: > + -c " + runner() { echo \"::group::${1}\"; shift 1; \"$@\"; local exit=$?; echo; echo \"::endgroup::\"; return $exit; } ; + runner \"Sync gentoo repo\" pmaint sync gentoo || exit 1 ; + runner \"Update repo metadata\" pmaint regen --dir ~/.cache/pkgcheck/repos . ; + runner \"Marking workspace safe for git\" git config --global --add safe.directory '*' ; + runner \"Run pkgcheck\" pkgcheck --color y ci --failures ~/failures.json --exit GentooCI ${{ inputs.args }} ; + scan_exit_status=$? ; + pkgcheck replay --color y ~/failures.json ; + exit $scan_exit_status + "