cleanup, use custom buildroot container
This commit is contained in:
parent
309cf18893
commit
904629068f
|
@ -17,13 +17,6 @@ jobs:
|
|||
name: Build and publish packages
|
||||
runs-on: ubuntu-latest
|
||||
if: "!contains(github.event.pull_request.title, '[ci skip]') && !contains(github.event.pull_request.body, '[ci skip]')"
|
||||
env:
|
||||
MAINTAINER: "Luca Bilke <luca@bil.ke>"
|
||||
PATH: "/usr/libexec/chroot-git:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin"
|
||||
ARCH: "${{ matrix.config.arch }}"
|
||||
BOOTSTRAP: "${{ matrix.config.host }}"
|
||||
TEST: "${{ matrix.config.test }}"
|
||||
HOSTREPO: /hostrepo
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
@ -63,8 +56,15 @@ jobs:
|
|||
libc: musl
|
||||
platform: linux/amd64
|
||||
test: 0
|
||||
env:
|
||||
MAINTAINER: "Luca Bilke <luca@bil.ke>"
|
||||
PATH: "/usr/libexec/chroot-git:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/tmp/bin"
|
||||
ARCH: "${{ matrix.config.arch }}"
|
||||
BOOTSTRAP: "${{ matrix.config.host }}"
|
||||
TEST: "${{ matrix.config.test }}"
|
||||
HOSTREPO: /hostrepo
|
||||
container:
|
||||
image: ghcr.io/void-linux/void-buildroot-${{ matrix.config.libc }}:20231230R1
|
||||
image: git.snaile.de/snailed/xbps-builder:${{ matrix.config.libc }}-latest
|
||||
steps:
|
||||
- name: Clone and checkout
|
||||
uses: https://github.com/classabbyamp/treeless-checkout-action@v1
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
# Template file for 'zk'
|
||||
pkgname=zk
|
||||
version=0.14.0
|
||||
revision=2
|
||||
homepage="https://github.com/zk-org/zk/"
|
||||
license="GPL-3.0"
|
||||
short_desc="A plain text note-taking assistant"
|
||||
maintainer="luca <luca@snaile.de>"
|
||||
changelog="https://raw.githubusercontent.com/zk-org/zk/main/CHANGELOG.md"
|
||||
distfiles="https://github.com/zk-org/zk/archive/refs/tags/v${version}.tar.gz"
|
||||
go_import_path=github.com/mickael-menu/zk
|
||||
go_build_tags=fts5
|
||||
build_style=go
|
||||
|
||||
pre_fetch() {
|
||||
if ! cd "$XBPS_SRCDISTDIR"; then
|
||||
msg_error "$pkgver: cannot change dir to $XBPS_BUILDDIR!\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
url="${distfiles}"
|
||||
distfile="$(basename "$url")"
|
||||
|
||||
flock "${distfile}.part" $fetch_cmd "$url"
|
||||
flock -n "${distfile}.part" rm -f "${distfile}.part"
|
||||
|
||||
checksum=$(${XBPS_DIGEST_CMD} "$distfile")
|
||||
|
||||
mkdir -p "$XBPS_SRCDISTDIR/by_sha256"
|
||||
mv "$distfile" "$XBPS_SRCDISTDIR/by_sha256/${checksum}_${distfile}"
|
||||
}
|
||||
|
||||
do_check() {
|
||||
go test -v
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
Loading…
Reference in New Issue