fix(gar): use release
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
nyyu 2023-08-05 14:40:08 +02:00
parent abb0d8a13b
commit b0c824754f
2 changed files with 5 additions and 10 deletions

View File

@ -1,6 +1,6 @@
pkgbase = gitea-act-runner
pkgdesc = A runner for Gitea based on act.
pkgver = r238.9fc823e
pkgver = 0.2.5
pkgrel = 1
url = https://gitea.io
arch = x86_64
@ -8,7 +8,7 @@ pkgbase = gitea-act-runner
makedepends = go
makedepends = git
options = !lto
source = git+https://gitea.com/gitea/act_runner.git
source = git+https://gitea.com/gitea/act_runner.git#tag=v0.2.5
source = gitea-act-runner.service
source = gitea-act-runner.sysusers
source = gitea-act-runner.tmpfiles

View File

@ -1,5 +1,5 @@
pkgname=gitea-act-runner
pkgver=r238.9fc823e
pkgver=0.2.5
pkgrel=1
pkgdesc="A runner for Gitea based on act."
arch=(x86_64)
@ -7,7 +7,7 @@ url="https://gitea.io"
license=(MIT)
makedepends=(go git)
options=(!lto)
source=(git+https://gitea.com/gitea/act_runner.git
source=(git+https://gitea.com/gitea/act_runner.git#tag=v$pkgver
gitea-act-runner.service
gitea-act-runner.sysusers
gitea-act-runner.tmpfiles)
@ -16,11 +16,6 @@ sha256sums=('SKIP'
'2a59d9fb29fc93c14bce7a8c34f454a44e5a84e0eebaa60fea00b74961dd82d6'
'93bf08efe2c7c669ee3a15fb281cc004441ddb6c60bdda9237cfd0ebd29113d1')
pkgver() {
cd act_runner
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd ${srcdir}/act_runner
export CGO_CPPFLAGS="${CPPFLAGS}"
@ -33,7 +28,7 @@ build() {
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\" -X \"gitea.com/gitea/act_runner/internal/pkg/ver.version=v$pkgver\"" \
.
}