Merge branch 'ci-fixes' into 'master'

Fix CI, add packages to ci.toml so desktop can build from binaries

See merge request redox-os/redox!1524
This commit is contained in:
Jeremy Soller 2024-11-21 15:06:54 +00:00
commit 26fddb3071
5 changed files with 64 additions and 9 deletions

42
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,42 @@
# The GitLab Continuous Integration configuration
image: "ubuntu:22.04"
variables:
GIT_STRATEGY: "clone"
GIT_SUBMODULE_STRATEGY: "recursive"
before_script:
# Disable the wget progress bar
- echo 'show-progress = off' >> ~/.wgetrc
- |
export DEBIAN_FRONTEND=noninteractive
apt-get update -qq &&
apt-get install -qq \
bison \
build-essential \
curl \
flex \
fuse3 \
git \
libfuse-dev \
nasm \
pkg-config \
texinfo \
wget \
zstd &&
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none
img:
script:
- |
source "$HOME/.cargo/env" &&
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash &&
cargo binstall --no-confirm --version 0.1.1 cargo-config &&
cargo binstall --no-confirm --version 1.16.0 just &&
cargo binstall --no-confirm --version 0.27.0 cbindgen &&
cargo build --manifest-path installer/Cargo.toml --release &&
PODMAN_BUILD=0 REPO_BINARY=1 make ci-img IMG_TAG=$CI_COMMIT_REF_NAME
artifacts:
paths:
- build/img/
expire_in: 1 week

View file

@ -8,7 +8,7 @@ prompt = false
# Package settings # Package settings
[packages] [packages]
acid = {} acid = {}
atk = {} #atk = {} # depends on glib which does not build
audiod = {} audiod = {}
autoconf = {} autoconf = {}
automake = {} automake = {}
@ -33,6 +33,7 @@ cosmic-text = {}
cpal = {} cpal = {}
curl = {} curl = {}
dash = {} dash = {}
dejavu = {}
diffutils = {} diffutils = {}
dosbox = {} dosbox = {}
drivers = {} drivers = {}
@ -65,13 +66,13 @@ generaluser-gs = {}
gettext = {} gettext = {}
gigalomania = {} gigalomania = {}
git = {} git = {}
glib = {} #glib = {} # does not build
glutin = {} glutin = {}
gnu-binutils = {} gnu-binutils = {}
gnu-grep = {} gnu-grep = {}
gnu-make = {} gnu-make = {}
#gstreamer = {} # conflict with thread local errno #gstreamer = {} # conflict with thread local errno
harfbuzz = {} #harfbuzz = {} # depends on glib which does not build
#hematite = {} # needs crate patches for redox-unix #hematite = {} # needs crate patches for redox-unix
hicolor-icon-theme = {} hicolor-icon-theme = {}
init = {} init = {}
@ -83,6 +84,7 @@ ion = {}
ipcd = {} ipcd = {}
#jansson = {} # needs config.sub update #jansson = {} # needs config.sub update
kernel = {} kernel = {}
kibi = {}
lci = {} lci = {}
libc-bench = {} libc-bench = {}
libffi = {} libffi = {}
@ -97,7 +99,7 @@ libvorbis = {}
libxml2 = {} libxml2 = {}
llvm18 = {} llvm18 = {}
logd = {} logd = {}
lua54 = {} #lua54 = {} # did not build
#mdp = {} # ncursesw #mdp = {} # ncursesw
mednafen = {} mednafen = {}
mesa = {} mesa = {}
@ -143,9 +145,9 @@ perg = {}
periodictable = {} periodictable = {}
#perl5 = {} # ctermid, tempnam, ttyname #perl5 = {} # ctermid, tempnam, ttyname
pixelcannon = {} pixelcannon = {}
pixman = {} #pixman = {} # depends on glib which does not build
#pkgar = {} # uses virtual Cargo.toml, needs recipe update #pkgar = {} # uses virtual Cargo.toml, needs recipe update
pkg-config = {} #pkg-config = {} # depends on glib which does not build
pkgutils = {} pkgutils = {}
pop-icon-theme = {} pop-icon-theme = {}
#powerline = {} # dirs #powerline = {} # dirs
@ -161,7 +163,7 @@ redoxerd = {}
redox-fatfs = {} redox-fatfs = {}
redoxfs = {} redoxfs = {}
redox-games = {} redox-games = {}
redox-ssh = {} #redox-ssh = {} # does not compile
relibc = {} relibc = {}
#relibc-tests = {} # madvise link error #relibc-tests = {} # madvise link error
resist = {} resist = {}
@ -173,6 +175,7 @@ rust = {}
rust64 = {} rust64 = {}
rust-cairo = {} rust-cairo = {}
rust-cairo-demo = {} rust-cairo-demo = {}
rustpython = {}
rustual-boy = {} rustual-boy = {}
schismtracker = {} schismtracker = {}
scummvm = {} scummvm = {}
@ -208,7 +211,7 @@ uutils = {}
#vice = {} # linker errors #vice = {} # linker errors
vim = {} vim = {}
vttest = {} vttest = {}
vvvvvv = {} #vvvvvv = {} # did not compile
#webrender = {} # unwind #webrender = {} # unwind
#wesnoth = {} #wesnoth = {}
#winit = {} # tzset #winit = {} # tzset

View file

@ -21,6 +21,7 @@ git = {}
gnu-grep = {} gnu-grep = {}
ripgrep = {} ripgrep = {}
sodium = {} sodium = {}
vim = {}
# Games # Games
dosbox = {} dosbox = {}

9
config/x86_64/full.toml Normal file
View file

@ -0,0 +1,9 @@
include = [ "../base.toml", "ci.toml" ]
# General settings
[general]
filesystem_size = 8192
# Package settings
[packages]
# example = {}

View file

@ -9,7 +9,7 @@ IMG_DIR?=build/img/$(ARCH)
ci-img: FORCE ci-img: FORCE
rm -rf $(IMG_DIR) rm -rf $(IMG_DIR)
mkdir -p $(IMG_DIR) mkdir -p $(IMG_DIR)
$(MAKE) demo desktop server $(MAKE) server desktop demo
cd $(IMG_DIR) && zstd --rm * cd $(IMG_DIR) && zstd --rm *
cd $(IMG_DIR) && sha256sum -b * > SHA256SUM cd $(IMG_DIR) && sha256sum -b * > SHA256SUM