diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-09-22 14:25:54 +0200 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-09-22 17:40:43 +0200 |
commit | d22c6b136d1e2ede2e035802ea0c80913bb5ae39 (patch) | |
tree | 5a21fbf33f96165ca1626bc064e260d9c87462b8 | |
parent | 8b14d0b545da1e65027b6f791b260cc9bb52b740 (diff) | |
download | neard-d22c6b136d1e2ede2e035802ea0c80913bb5ae39.tar.gz |
ci: add ArchLinux container
Build in ArchLinux latest container.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
-rw-r--r-- | .github/workflows/ci.yml | 1 | ||||
-rwxr-xr-x | ci/archlinux.sh | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cc97767..7349693 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,7 @@ jobs: compiler: [gcc, clang] container: - alpine:latest + - archlinux:latest - debian:testing - debian:stable # Fails on configure on GCC and clang (process restrictions?) diff --git a/ci/archlinux.sh b/ci/archlinux.sh new file mode 100755 index 0000000..b08069a --- /dev/null +++ b/ci/archlinux.sh @@ -0,0 +1,30 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 +# +# Copyright (c) 2021 Canonical Ltd. +# Author: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> +# <krzk@kernel.org> +# + +set -ex + +PKGS_CC="gcc" +case $CC in + clang*) + PKGS_CC="clang" + ;; +esac + +pacman -Sy --noconfirm \ + autoconf \ + autoconf-archive \ + automake \ + dbus \ + glib2 \ + libnl \ + libtool \ + make \ + pkg-config \ + $PKGS_CC + +echo "Install finished: $0" |