Commit 1fd9e54b authored by Simon McVittie's avatar Simon McVittie

CI: Codify how to build on Arch Linux

Some libcapsule users and contributors are using Arch Linux or Manjaro
rather than a Debian derivative.

Many of the tests will be skipped on Gitlab-CI because they need a
working bubblewrap, which isn't allowed inside unprivileged Docker;
but this provides "executable documentation" for how to do a build
and test.
Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent 2b213daa
Pipeline #8176 passed with stage
in 8 minutes and 23 seconds
......@@ -94,3 +94,43 @@ build:bionic:
variables:
BUILD_IMAGE: 'ubuntu:bionic'
LIBJPEG62: 'libjpeg62'
build:arch:
when: manual
variables:
BUILD_IMAGE: 'archlinux'
image: ${BUILD_IMAGE}
before_script:
# bubblewrap-suid instead of bubblewrap will be necessary on some
# kernels.
#
# Full test coverage is likely to require running with
# docker run --privileged, which Gitlab-CI doesn't normally do;
# as much as anything, this is here to document what's necessary
# to build libcapsule with full test coverage.
- |
pacman -Syu --needed --noconfirm --noprogressbar \
autoconf \
autoconf-archive \
automake \
bubblewrap \
chrpath \
gcc \
glib2 \
gtk-doc \
libelf \
libjpeg6-turbo \
libtool \
libxslt \
make \
perl \
perl-ipc-run \
pkgconf \
sudo \
${NULL+}
script: |
NOCONFIGURE=1 ./autogen.sh
./configure
make
make check
make distcheck
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment