This commit is contained in:
Luca Bilke 2024-05-21 19:24:11 +02:00
parent 06d905c8cf
commit 4811b47631
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47
1 changed files with 26 additions and 3 deletions

View File

@ -32,12 +32,12 @@ jobs:
host: x86_64 host: x86_64
libc: glibc libc: glibc
platform: linux/amd64 platform: linux/amd64
test: 1 test: 0
- arch: i686 - arch: i686
host: i686 host: i686
libc: glibc libc: glibc
platform: linux/386 platform: linux/386
test: 1 test: 0
- arch: aarch64 - arch: aarch64
host: x86_64 host: x86_64
libc: glibc libc: glibc
@ -74,7 +74,7 @@ jobs:
mkdir -p /etc/xbps.d && cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/ mkdir -p /etc/xbps.d && cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/
sed -i 's|repo-default|repo-ci|g' /etc/xbps.d/*-repository-*.conf sed -i 's|repo-default|repo-ci|g' /etc/xbps.d/*-repository-*.conf
xbps-install -Syu || { xbps-install -yu xbps && xbps-install -yu; } xbps-install -Syu || { xbps-install -yu xbps && xbps-install -yu; }
xbps-install -y grep curl git node xbps-install -y grep curl git
- name: Create hostrepo and prepare masterdir - name: Create hostrepo and prepare masterdir
run: | run: |
@ -85,6 +85,29 @@ jobs:
mkdir -p /hostdir/binpkgs mkdir -p /hostdir/binpkgs
curl -so "/hostdir/binpkgs/${{ matrix.config.arch }}-repodata" "https://xbps.snaile.de/${{ matrix.config.arch }}-repodata" || true curl -so "/hostdir/binpkgs/${{ matrix.config.arch }}-repodata" "https://xbps.snaile.de/${{ matrix.config.arch }}-repodata" || true
- name: Get changed packages
run: |
tip="$(git rev-list -1 --parents HEAD)"
case "$tip" in
# This is a merge commit, pick last parent
*" "*" "*) tip="${tip##* }" ;;
# This is a non-merge commit, pick itself
*) tip="${tip%% *}" ;;
esac
base="$(git rev-list -1 HEAD^)"
echo "$base $tip" >/tmp/revisions
echo -e '\x1b[32mChanged packages:\x1b[0m'
git diff-tree -r --no-renames --name-only --diff-filter=AM \
"$base" "$tip" \
-- 'srcpkgs/*/template' |
cut -d/ -f 2 |
xargs ./xbps-src sort-dependencies |
tee /tmp/templates |
sed "s/^/ /" >&2
- name: Build packages - name: Build packages
run: | run: |
( (