Skip to content

Commit

Permalink
Add makepkg args
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinghigh committed Dec 26, 2022
1 parent a44a7df commit 0d2ae08
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`).
Expand Down
4 changes: 4 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[*]}"
Expand Down

0 comments on commit 0d2ae08

Please sign in to comment.