-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XANMOD: .gitlab-ci: Add yaml file for deb-pkg builds
Signed-off-by: Alexandre Frade <kernel@xanmod.org>
- Loading branch information
Showing
1 changed file
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
image: amd64/debian:bookworm-slim | ||
|
||
before_script: | ||
- apt update; apt install -y --no-install-recommends fakeroot build-essential git wget openssl libssl-dev ca-certificates libncurses-dev zstd xz-utils flex libelf-dev bison bc debhelper rsync kmod cpio gpg pahole python3 | ||
- wget -qO - https://download.opensuse.org/repositories/home:/frd/Debian_12/Release.key | gpg --dearmor -o /usr/share/keyrings/frd-archive-keyring.gpg | ||
- echo 'deb [signed-by=/usr/share/keyrings/frd-archive-keyring.gpg] https://download.opensuse.org/repositories/home:/frd/Debian_12/ /' | tee /etc/apt/sources.list.d/frd-release.list | ||
- apt update; apt install -y gcc-13 | ||
- wget -O - https://dl.xanmod.org/${CI_CERTS_TOKEN}/certs2.tar.xz | tar -xvJ | ||
- export lv=$(make -s kernelversion) | ||
- export xv=$(cat localversion) | ||
- export rv=0 | ||
- export git=$(git rev-parse --short=7 HEAD) | ||
- export dv=$(git show -s --date=format:'%Y%m%d' --format=%cd) | ||
- export jobs=$((2*$(nproc))); echo $jobs | ||
- pvcmd="cat $KCONFIG_CONFIG | grep 'LOCALVERSION='" && export pv=$(eval $pvcmd | cut -d'"' -f2) | ||
- export mvcmd="make -j$jobs CC='gcc-13' HOSTCC='gcc-13' KDEB_PKGVERSION='$lv$pv$xv-$rv~$dv.g$git' bindeb-pkg 2>&1 | tee ../build-$lv$pv$xv-$rv~$dv.g"$git"_amd64.log && xz -e9 ../build-*$pv*" | ||
- export avcmd="mkdir -p assets/ && mv ../*$pv* assets/" | ||
|
||
variables: | ||
DEBFULLNAME: "Alexandre Frade" | ||
DEBEMAIL: "kernel@xanmod.org" | ||
KDEB_CHANGELOG_DIST: "bookworm" | ||
KCONFIG_CONFIG: "CONFIGS/xanmod/gcc/config_$psabi" | ||
|
||
linux-6.4-x64v1-xanmod: | ||
tags: [saas-linux-xlarge-amd64] | ||
stage: build | ||
variables: | ||
psabi: x86-64-v1 | ||
script: | ||
- eval $mvcmd && eval $avcmd | ||
artifacts: | ||
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" | ||
paths: | ||
- assets/ | ||
exclude: | ||
- assets/*dbg* | ||
timeout: 1h | ||
|
||
linux-6.4-x64v2-xanmod: | ||
tags: [saas-linux-xlarge-amd64] | ||
stage: build | ||
variables: | ||
psabi: x86-64-v2 | ||
script: | ||
- eval $mvcmd && eval $avcmd | ||
artifacts: | ||
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" | ||
paths: | ||
- assets/ | ||
exclude: | ||
- assets/*dbg* | ||
timeout: 1h | ||
|
||
linux-6.4-x64v3-xanmod: | ||
tags: [saas-linux-xlarge-amd64] | ||
stage: build | ||
variables: | ||
psabi: x86-64-v3 | ||
script: | ||
- eval $mvcmd && eval $avcmd | ||
artifacts: | ||
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" | ||
paths: | ||
- assets/ | ||
exclude: | ||
- assets/*dbg* | ||
timeout: 1h | ||
|
||
linux-6.4-x64v4-xanmod: | ||
tags: [saas-linux-xlarge-amd64] | ||
stage: build | ||
variables: | ||
psabi: x86-64-v4 | ||
script: | ||
- eval $mvcmd && eval $avcmd | ||
artifacts: | ||
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" | ||
paths: | ||
- assets/ | ||
exclude: | ||
- assets/*dbg* | ||
timeout: 1h |