Cirrus: Skip showconf on download task

Fixes https://github.com/namecoin/ncdns-repro/issues/106
pull/112/head
Jeremy Rand 3 years ago
parent 6a4c7bb9da
commit 8cfcf0727c
No known key found for this signature in database
GPG Key ID: FD7550C2EB800711

@ -48,20 +48,22 @@ echo "Unpacking git cache..."
if [[ "$PROJECT" == "release" ]]; then
echo "release project is never cached."
else
echo "Checking if project is cached..."
OUTDIR="$(./rbm/rbm showconf $PROJECT output_dir --target $CHANNEL --target ncdns-$OS-$ARCH)"
OUTFILE="$(./rbm/rbm showconf $PROJECT filename --target $CHANNEL --target ncdns-$OS-$ARCH)"
if [[ "$SHOULD_BUILD" -eq 0 ]]; then
echo "Cleaning old outputs..."
./tools/clean-old
fi
if [[ -e "$OUTDIR/$OUTFILE" ]]; then
echo "Project cache hit, skipping build."
SHOULD_BUILD=0
if [[ "$SHOULD_BUILD" -eq 1 ]]; then
echo "Checking if project is cached..."
OUTDIR="$(./rbm/rbm showconf $PROJECT output_dir --target $CHANNEL --target ncdns-$OS-$ARCH)"
OUTFILE="$(./rbm/rbm showconf $PROJECT filename --target $CHANNEL --target ncdns-$OS-$ARCH)"
if [[ -e "$OUTDIR/$OUTFILE" ]]; then
echo "Project cache hit, skipping build."
SHOULD_BUILD=0
else
echo "Project cache miss, proceeding with build."
fi
else
echo "Project cache miss, proceeding with build."
if [[ "$SHOULD_BUILD" -eq 0 ]]; then
echo "Cleaning old outputs..."
./tools/clean-old
fi
fi
fi

Loading…
Cancel
Save