Skip to content

Commit 9479c36

Browse files
committed
Merge commit 'refs/pull/111/head' of github.com:archlinux/archlinux-repro
2 parents 7783f25 + 0ed58c6 commit 9479c36

File tree

3 files changed

+63
-2
lines changed

3 files changed

+63
-2
lines changed

.github/workflows/make.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Makefile CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Install dependencies
17+
run: sudo apt update && sudo apt install -y asciidoc
18+
19+
- name: Run make
20+
run: make

.github/workflows/repro.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: archlinux-repro
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
pkg:
16+
- archlinux-repro
17+
- which
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Install dependencies
23+
run: sudo apt update && sudo apt install -y asciidoc systemd-container
24+
25+
- name: Install archlinux-repro
26+
run: sudo make install
27+
28+
- name: Fetch pkg
29+
run: docker run --rm -v $PWD/pkg:/var/cache/pacman/pkg archlinux pacman -Syw ${{ matrix.pkg }} --noconfirm
30+
31+
- name: Remove signatures
32+
run: sudo rm ./pkg/*.sig
33+
34+
- name: Test repro
35+
run: repro ./pkg/${{ matrix.pkg }}-*

repro.in

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ if ((DEBUG)); then
88
set -x
99
fi
1010

11+
# Ensure umask is set correctly
12+
umask 022
13+
1114
BUILDDIRECTORY=/var/lib/repro
1215

1316
KEYRINGCACHE="${BUILDDIRECTORY}/keyring"
@@ -347,7 +350,7 @@ function cmd_check(){
347350
DEVTOOLS_PKG="devtools"
348351
if [[ -z "${BUILDTOOL}" ]] || [[ "${BUILDTOOL}" = makepkg ]]; then
349352
DEVTOOLS="devtools-20210202-3-any"
350-
DEVTOOLS_PKG="$ARCHIVEURL/d/devtools/${DEVTOOLS}.pkg.tar${pkg##*tar}"
353+
DEVTOOLS_PKG="$ARCHIVEURL/d/devtools/${DEVTOOLS}.pkg.tar.zst"
351354
elif [[ "${BUILDTOOL}" = devtools ]] ; then
352355
DEVTOOLS="${BUILDTOOL}-${BUILDTOOLVER}"
353356
DEVTOOLS_PKG="$ARCHIVEURL/${BUILDTOOL:0:1}/${DEVTOOLS}.pkg.tar${pkg##*tar}"
@@ -381,7 +384,10 @@ function cmd_check(){
381384
bash <<-__END__
382385
shopt -s globstar
383386
pacman -S asp --noconfirm --needed
384-
asp checkout $pkgbase
387+
if ! asp checkout $pkgbase; then
388+
echo "ERROR: Failed checkout $pkgbase" >&2
389+
exit 1
390+
fi
385391
pushd $pkgbase
386392
for rev in \$(git rev-list --all -- repos/); do
387393
pkgbuild_checksum=\$(git show \$rev:trunk/PKGBUILD | sha256sum -b)

0 commit comments

Comments
 (0)