Add Linux native and Nix runner images
This commit is contained in:
1 parent
8096b3df11
commit
0d0a5d575a
4 files changed
+76
-1
No files matched your search
@@ -34,6 +34,8 @@ jobs:
|
|||||||
max-parallel: 1
|
max-parallel: 1
|
||||||
matrix:
|
matrix:
|
||||||
image:
|
image:
|
||||||
|
- linux-native
|
||||||
|
- nixos
|
||||||
- vulkan
|
- vulkan
|
||||||
- windows-gcc
|
- windows-gcc
|
||||||
- windows-clang
|
- windows-clang
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ Container images used by the Void Gitea Actions runners. They are built by
|
|||||||
|
|
||||||
| Tag | Purpose | Base |
|
| Tag | Purpose | Base |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
|
| `linux-native` | Native C++ build/test without GPU or Windows tooling | Arch Linux |
|
||||||
|
| `nixos` | Nix with flakes enabled for `nix-shell` / `nix develop` | `nixos/nix` |
|
||||||
| `vulkan` | Build and test Vulkan code on the AMD GPU or the lavapipe software driver | Arch Linux |
|
| `vulkan` | Build and test Vulkan code on the AMD GPU or the lavapipe software driver | Arch Linux |
|
||||||
| `windows-gcc` | Cross-build Windows x86_64 binaries with MinGW-w64 GCC (UCRT) and run them under Wine | Arch Linux |
|
| `windows-gcc` | Cross-build Windows x86_64 binaries with MinGW-w64 GCC (UCRT) and run them under Wine | Arch Linux |
|
||||||
| `windows-clang` | The same Windows workflow with the LLVM-MinGW clang toolchain | `mstorsjo/llvm-mingw` |
|
| `windows-clang` | The same Windows workflow with the LLVM-MinGW clang toolchain | `mstorsjo/llvm-mingw` |
|
||||||
@@ -14,7 +16,7 @@ Container images used by the Void Gitea Actions runners. They are built by
|
|||||||
## Dependencies baked in
|
## Dependencies baked in
|
||||||
|
|
||||||
The C++ toolchain the Void research projects (Engine, Build-System, Library)
|
The C++ toolchain the Void research projects (Engine, Build-System, Library)
|
||||||
use is already installed:
|
use is already installed in `linux-native` and `vulkan`:
|
||||||
|
|
||||||
- GCC 16 (C++26 with `-freflection`), CMake 4, Ninja, `pkg-config`, ccache
|
- GCC 16 (C++26 with `-freflection`), CMake 4, Ninja, `pkg-config`, ccache
|
||||||
- Boost, OpenSSL, SQLite, libsodium, libarchive, FreeType, GLFW, GoogleTest
|
- Boost, OpenSSL, SQLite, libsodium, libarchive, FreeType, GLFW, GoogleTest
|
||||||
|
|||||||
@@ -0,0 +1,44 @@
|
|||||||
|
# Native Linux C++ build/test environment for the Void research projects.
|
||||||
|
#
|
||||||
|
# This is the lean native image: GCC 16 (C++26 reflection), CMake 4, Ninja and
|
||||||
|
# the Void dependencies, without the Vulkan/GPU stack (use the `vulkan` image
|
||||||
|
# for that) and without Wine (use a Windows image for that).
|
||||||
|
#
|
||||||
|
# Arch Linux is the base because it packages GCC 16, CMake 4 and every Void
|
||||||
|
# dependency in one repository. The install is split into several RUN layers
|
||||||
|
# so no single image layer gets large enough to upset the container registry.
|
||||||
|
FROM archlinux:base-devel
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.title="Void CI Linux native" \
|
||||||
|
org.opencontainers.image.description="GCC 16, CMake 4, Ninja and the Void C++ dependencies on Arch Linux" \
|
||||||
|
org.opencontainers.image.source="https://git.faumaray.com/Void/CI-Images"
|
||||||
|
|
||||||
|
ENV LANG=C.UTF-8 \
|
||||||
|
LC_ALL=C.UTF-8 \
|
||||||
|
CMAKE_GENERATOR=Ninja \
|
||||||
|
CCACHE_DIR=/var/cache/ccache
|
||||||
|
|
||||||
|
RUN pacman -Syu --noconfirm \
|
||||||
|
&& pacman -S --noconfirm --needed \
|
||||||
|
base-devel gcc cmake ninja git pkgconf python ccache \
|
||||||
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
|
RUN pacman -S --noconfirm --needed \
|
||||||
|
boost openssl sqlite gtest glfw freetype2 libsodium libarchive \
|
||||||
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
|
RUN pacman -S --noconfirm --needed \
|
||||||
|
libx11 libxcb libxcursor libxrandr libxi libxinerama libxkbcommon \
|
||||||
|
wayland wayland-protocols xorg-server-xvfb \
|
||||||
|
zip unzip jq curl ca-certificates \
|
||||||
|
&& pacman -Scc --noconfirm
|
||||||
|
|
||||||
|
RUN git config --system --add safe.directory '*' \
|
||||||
|
&& useradd --create-home --shell /bin/bash builder \
|
||||||
|
&& mkdir -p /var/cache/ccache \
|
||||||
|
&& chown builder:builder /var/cache/ccache
|
||||||
|
|
||||||
|
USER builder
|
||||||
|
WORKDIR /home/builder
|
||||||
|
|
||||||
|
CMD ["/bin/bash"]
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
# Nix-enabled runner image for the Void research projects.
|
||||||
|
#
|
||||||
|
# Starts from the official NixOS Nix image and enables flakes and the
|
||||||
|
# nix-command, so a workflow can run the repository's own shell:
|
||||||
|
#
|
||||||
|
# nix-shell shell.nix --run 'bash ci/linux.sh'
|
||||||
|
# nix develop
|
||||||
|
#
|
||||||
|
# Nothing project-specific is baked in: each project pins its own nixpkgs
|
||||||
|
# (Void/Engine's shell.nix does), so this image stays small and current.
|
||||||
|
FROM nixos/nix:latest
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.title="Void CI Nix" \
|
||||||
|
org.opencontainers.image.description="Nix with flakes enabled for the Void projects' nix-shell/nix develop environments" \
|
||||||
|
org.opencontainers.image.source="https://git.faumaray.com/Void/CI-Images"
|
||||||
|
|
||||||
|
RUN printf '%s\n' \
|
||||||
|
'experimental-features = nix-command flakes' \
|
||||||
|
'trusted-users = root' \
|
||||||
|
>>/etc/nix/nix.conf \
|
||||||
|
&& git config --global --add safe.directory '*'
|
||||||
|
|
||||||
|
ENV NIX_CONFIG="experimental-features = nix-command flakes"
|
||||||
|
|
||||||
|
WORKDIR /workspace
|
||||||
|
|
||||||
|
CMD ["bash"]
|
||||||
Reference in new issue
Block a user