Skip to content

Commit

Permalink
add chisel
Browse files Browse the repository at this point in the history
Fixes #42.
  • Loading branch information
dadevel committed May 17, 2024
1 parent 61625d2 commit 4e82a34
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- package-brutespray
- package-certipy
- package-certipy-bloodhound
- package-chisel
- package-coercer
- package-credmaster
- package-cvemap
Expand Down Expand Up @@ -292,6 +293,24 @@ jobs:
path: ./certipy-bloodhound/*.pkg.tar.zst
retention-days: 1
if-no-files-found: error
package-chisel:
runs-on: ubuntu-20.04
needs:
- build-container
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build package
run: ./build-package.sh chisel
- name: Upload package
uses: actions/upload-artifact@v3
with:
name: package-chisel
path: ./chisel/*.pkg.tar.zst
retention-days: 1
if-no-files-found: error
package-coercer:
runs-on: ubuntu-20.04
needs:
Expand Down
24 changes: 24 additions & 0 deletions chisel/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
pkgname=chisel
pkgver=latest
pkgrel=1
url="https://github.com/jpillora/${pkgname}.git"
arch=(any)
license=(MIT)
makedepends=(git go)
source=("git+${url}")
sha256sums=(SKIP)

build() {
cd "${srcdir}/${pkgname}"
make linux
}

package() {
cd "${srcdir}/${pkgname}"
install -Dm 755 ./build/v*/*/bin/chisel-linux_amd64 "${pkgdir}/opt/archpkgs/bin/${pkgname}"
}

pkgver() {
cd "${srcdir}/${pkgname}"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

0 comments on commit 4e82a34

Please sign in to comment.