From 68b673fe0800067dafa7a47469eb89617bfd1b17 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 2 Apr 2026 11:06:12 +0200 Subject: ci: split build and test --- .gitlab-ci.yml | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 661ce63..139eb0a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,10 +1,15 @@ -.build_matrix: &build_matrix - parallel: - matrix: - - PLATFORM: ["x86_64"] - TYPE: ["dbg", "rel"] +build:bht: + stage: build + image: registry.gitlab.ost.ch:45023/teachos/devcontainers/bht.ci:latest + script: + - cmake --preset bht + - cmake --build --preset bht-dbg + artifacts: + paths: + - build/bht/ + expire_in: 5 min -build: +build:bootable: stage: build image: registry.gitlab.ost.ch:45023/teachos/devcontainers/x86-64.ci:latest script: @@ -18,14 +23,17 @@ build: - kernel.sym - kernel.iso expire_in: 1 week - <<: *build_matrix -bht: - stage: build + parallel: + matrix: + - PLATFORM: ["x86_64"] + TYPE: ["dbg", "rel"] + +test:bht: + stage: test image: registry.gitlab.ost.ch:45023/teachos/devcontainers/bht.ci:latest + needs: ["build:bht"] script: - - cmake --preset bht - - cmake --build --preset bht-dbg - ctest --preset bht-dbg - lcov --config-file .lcovrc --capture --directory $(pwd) --output-file coverage.info - lcov --list coverage.info @@ -36,10 +44,8 @@ bht: coverage: '/Total:\|\s*(\d+(?:\.\d+)?)\%/' artifacts: paths: - - coverage.info - coverage/ expire_in: 24 hours - when: always reports: coverage_report: coverage_format: cobertura -- cgit v1.2.3