From 0d2ae08929eae9b85b47f28db6cfc50d2b54c883 Mon Sep 17 00:00:00 2001 From: Pinghigh Date: Mon, 26 Dec 2022 11:49:48 +0800 Subject: [PATCH] Add makepkg args --- README.md | 1 + action.yaml | 4 ++++ entrypoint.sh | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d87b1d2..e69a622 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Inputs: * `namcapDisable`: Disable namcap checks if nonempty. * `namcapRules`: A comma-separated list of rules for namcap to run. * `namcapExcludeRules`: A comma-separated list of rules for namcap not to run. +* `makepkgArgs`: Additional arguments to pass to `makepkg`. Outputs: * `pkgfileN`: Filename of Nth built package archive (ordered as `makepkg --packagelist`). diff --git a/action.yaml b/action.yaml index 4c09a0a..2e78c48 100644 --- a/action.yaml +++ b/action.yaml @@ -21,6 +21,10 @@ inputs: description: "A comma-separated list of rules for namcap not to run." required: false default: "" + makepkgArgs: + description: "Additional arguments to pass to makepkg." + required: false + default: "" outputs: pkgfile0: description: "Filename of the first generated package archive. Usually only one." diff --git a/entrypoint.sh b/entrypoint.sh index 5343ea5..c83719b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -34,7 +34,7 @@ chown -R builder . pacman -S --noconfirm --needed paru sudo -H -u builder updpkgsums -sudo -H -u builder paru -U --noconfirm +sudo -H -u builder paru -U --noconfirm --mflags "${INPUT_MAKEPKGARGS:-}" # Get array of packages to be built mapfile -t PKGFILES < <( sudo -u builder makepkg --packagelist ) echo "Package(s): ${PKGFILES[*]}"