summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2024-07-25 08:27:55 +0200
committerFelix Morgner <felix.morgner@gmail.com>2024-07-25 08:27:55 +0200
commite05d980091724358f689598643b0f17ec671d495 (patch)
treeabbce5eb369e20262de63d3137c69ccd50e0c2d0 /ci
parent675dfdad0aacaf731b3adbe5079e556a62f56e64 (diff)
downloadturns-e05d980091724358f689598643b0f17ec671d495.tar.xz
turns-e05d980091724358f689598643b0f17ec671d495.zip
ci: move files to subdirectory
Diffstat (limited to 'ci')
-rw-r--r--ci/Containerfile37
-rw-r--r--ci/etc/locale.gen4
2 files changed, 41 insertions, 0 deletions
diff --git a/ci/Containerfile b/ci/Containerfile
new file mode 100644
index 0000000..f3c8685
--- /dev/null
+++ b/ci/Containerfile
@@ -0,0 +1,37 @@
+FROM docker.io/archlinux:base-devel
+
+LABEL org.opencontainers.image.title="turns CI image"
+
+ADD etc/locale.gen /etc/locale.gen
+
+RUN pacman-key --init \
+ && echo 'NoExtract = !usr/share/locale/* !usr/share/i18n/*' >> /etc/pacman.conf \
+ && pacman -Syu --noconfirm --noprogressbar \
+ 'glibc' \
+ && pacman -Syu --noconfirm --noprogressbar --needed \
+ 'catch2>=3.6' \
+ 'cmake>=3.29' \
+ 'gcc>=14.1.0' \
+ 'git' \
+ 'gtkmm-4.0>=4.14' \
+ 'libadwaita>=1.5' \
+ 'lcov' \
+ 'ninja>=1.11' \
+ 'pkgconf' \
+ 'weston' \
+ && locale-gen \
+ && useradd -m builduser \
+ && echo 'builduser ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers \
+ && mkdir aur && chown builduser: aur \
+ && cd aur \
+ && sudo -u builduser git clone 'https://aur.archlinux.org/cambalache.git' \
+ && cd cambalache \
+ && sudo -u builduser makepkg -irs --noconfirm --noprogressbar --needed \
+ && cd ../.. \
+ && rm -rf aur \
+ && yes | pacman -Sccdd
+
+ENV XDG_RUNTIME_DIR=/tmp \
+ WAYLAND_DISPLAY=wl-test-env
+
+USER builduser
diff --git a/ci/etc/locale.gen b/ci/etc/locale.gen
new file mode 100644
index 0000000..c7e71f4
--- /dev/null
+++ b/ci/etc/locale.gen
@@ -0,0 +1,4 @@
+de_AT.UTF-8 UTF-8
+de_CH.UTF-8 UTF-8
+de_DE.UTF-8 UTF-8
+en_US.UTF-8 UTF-8