aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-12-18 15:29:33 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-12-18 15:29:33 +0100
commit573c620744be20897e5586e14c7491ada3ce353c (patch)
tree04ff55d9aec03ae45e10fb098143ab87345e065d
parentaf60557b17ce88d191b3d9637d8d9035a00b8c18 (diff)
downloadteachos-573c620744be20897e5586e14c7491ada3ce353c.tar.xz
teachos-573c620744be20897e5586e14c7491ada3ce353c.zip
chore: add simple CI configuration
-rw-r--r--.gitlab-ci.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..7ed0600
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,23 @@
+.build_matrix: &build_matrix
+ parallel:
+ matrix:
+ - PLATFORM: ["x86_64"]
+ TYPE: ["dbg", "rel"]
+
+build:
+ stage: build
+ image: registry.gitlab.ost.ch:45023/teachos/devcontainers/x86-64:15.2.0-1
+ before_script:
+ - apt update
+ - apt install -y cmake grub2-common grub-pc mtools ninja-build xorriso
+ script:
+ - cmake --preset $PLATFORM
+ - cmake --build --preset $PLATFORM-$TYPE
+ - cp build/bin/**/kernel.{dis,elf,sym,iso} .
+ artifacts:
+ paths:
+ - kernel.dis
+ - kernel.elf
+ - kernel.sym
+ - kernel.iso
+ <<: *build_matrix