Skip to content

Commit

Permalink
ci/debian: Allow to install packages only for docparse
Browse files Browse the repository at this point in the history
Will be used in next commit.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
  • Loading branch information
pevik committed Jan 4, 2024
1 parent 690436c commit aa51f2a
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion ci/debian.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh -eux
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) 2018-2021 Petr Vorel <pvorel@suse.cz>
# Copyright (c) 2018-2024 Petr Vorel <pvorel@suse.cz>

# workaround for missing oldstable-updates repository
# W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/main/binary-amd64/Packages
Expand All @@ -13,6 +13,19 @@ export DEBIAN_FRONTEND="noninteractive"

apt="apt install -y --no-install-recommends"

# see .github/workflows/metadata.yml
if [ "${PACKAGES_FOR_DOCPARSE_ONLY:-}" ]; then
$apt \
asciidoctor \
autoconf \
automake \
gcc \
libjson-perl \
ruby-asciidoctor-pdf

return 0
fi

$apt \
acl-dev \
asciidoc \
Expand Down

0 comments on commit aa51f2a

Please sign in to comment.