Update calbuilder
This commit is contained in:
parent
0967c35ab6
commit
ab25a337fb
30
README.md
30
README.md
|
@ -1,5 +1,5 @@
|
||||||
# calbuilder
|
# calbuilder-woodpecker
|
||||||
GitHub action to build a package, analyze it with `namcap`, and output the package file (signed or unsigned) and its `.SRCINFO`.
|
Woodpecker action to build a package, analyze it with `namcap`, and output the package file (signed or unsigned) and its `.SRCINFO`.
|
||||||
|
|
||||||
This action supports PKGBUILDs that have AUR dependencies.
|
This action supports PKGBUILDs that have AUR dependencies.
|
||||||
|
|
||||||
|
@ -26,30 +26,20 @@ None of these inputs are required.
|
||||||
|
|
||||||
## Usage <a name="usage"></a>
|
## Usage <a name="usage"></a>
|
||||||
```yaml
|
```yaml
|
||||||
name: CI
|
|
||||||
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
webhook:
|
||||||
- id: calbuilder
|
image: slococo/calbuilder
|
||||||
uses: santilococo/calbuilder@master
|
settings:
|
||||||
pkgDir: "libxft-bgra"
|
pkgDir: "libxft-bgra"
|
||||||
gpgPublicKey: "199980CE93F18E62"
|
gpgPublicKey: "199980CE93F18E62"
|
||||||
gpgPrivateKey: "${{ secrets.GPG_PRIVATE_KEY }}"
|
gpgPrivateKey:
|
||||||
gpgPassphrase: "${{ secrets.GPG_PASSPHRASE }}"
|
from_secret: GPG_PRIVATE_KEY
|
||||||
- uses: actions/upload-artifact@v2
|
gpgPassphrase:
|
||||||
with:
|
from_secret: GPG_PASSPHRASE
|
||||||
path: |
|
|
||||||
${{ steps.calbuilder.outputs.srcInfo }}
|
|
||||||
${{ steps.calbuilder.outputs.pkgFile }}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing <a name="contributing"></a>
|
## Contributing <a name="contributing"></a>
|
||||||
PRs are welcome.
|
PRs are welcome.
|
||||||
|
|
||||||
## License <a name="license"></a>
|
## License <a name="license"></a>
|
||||||
[MIT](https://raw.githubusercontent.com/santilococo/calbuilder/master/LICENSE.md)
|
[MIT](https://git.slc.ar/slococo/calbuilder/src/branch/master/LICENSE.md)
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
name: Calbuilder
|
name: Calbuilder
|
||||||
author: Santiago Lo Coco
|
author: Santiago Lo Coco
|
||||||
description: Makepkg, analyze it with namcap, and output the package file and its .SRCINFO
|
description: Makepkg, analyze it with namcap, and output the package file and its .SRCINFO
|
||||||
branding:
|
settings:
|
||||||
color: green
|
|
||||||
icon: zap
|
|
||||||
inputs:
|
|
||||||
pkgDir:
|
pkgDir:
|
||||||
description: "PKGBUILD directory relative path."
|
description: "PKGBUILD directory relative path."
|
||||||
required: false
|
required: false
|
||||||
|
@ -28,6 +25,3 @@ outputs:
|
||||||
description: "Built package file."
|
description: "Built package file."
|
||||||
pkgFileSig:
|
pkgFileSig:
|
||||||
description: "Built package signature file."
|
description: "Built package signature file."
|
||||||
runs:
|
|
||||||
using: 'docker'
|
|
||||||
image: 'Dockerfile'
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
getInputs() {
|
getInputs() {
|
||||||
gpgPrivateKey="$INPUT_GPGPRIVATEKEY"
|
gpgPrivateKey="$PLUGIN_GPGPRIVATEKEY"
|
||||||
gpgPublicKey="$INPUT_GPGPUBLICKEY"
|
gpgPublicKey="$PLUGIN_GPGPUBLICKEY"
|
||||||
gpgPassphrase="$INPUT_GPGPASSPHRASE"
|
gpgPassphrase="$PLUGIN_GPGPASSPHRASE"
|
||||||
pkgDir="$INPUT_PKGDIR"
|
pkgDir="$PLUGIN_PKGDIR"
|
||||||
}
|
}
|
||||||
|
|
||||||
addUser() {
|
addUser() {
|
||||||
|
@ -78,6 +78,7 @@ namcapAnalysis() {
|
||||||
}
|
}
|
||||||
|
|
||||||
exportFile() {
|
exportFile() {
|
||||||
|
# TODO: fix
|
||||||
[ "$inBaseDir" = false ] && mv "$2" /github/workspace
|
[ "$inBaseDir" = false ] && mv "$2" /github/workspace
|
||||||
echo "::set-output name=$1::$2"
|
echo "::set-output name=$1::$2"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue