forked from xanmod/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
91 lines (85 loc) · 2.58 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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: "[email protected]"
KDEB_CHANGELOG_DIST: "bookworm"
KCONFIG_CONFIG: "CONFIGS/xanmod/gcc/config_$psabi"
6.5 x64v1:
tags: [saas-linux-xlarge-amd64]
stage: build
only:
- branches
variables:
psabi: x86-64-v1
script:
- eval $mvcmd && eval $avcmd
artifacts:
name: "$CI_JOB_NAME~$CI_COMMIT_SHORT_SHA"
paths:
- assets/
exclude:
- assets/*dbg*
timeout: 1h
6.5 x64v2:
tags: [saas-linux-xlarge-amd64]
stage: build
only:
- branches
variables:
psabi: x86-64-v2
script:
- eval $mvcmd && eval $avcmd
artifacts:
name: "$CI_JOB_NAME~$CI_COMMIT_SHORT_SHA"
paths:
- assets/
exclude:
- assets/*dbg*
timeout: 1h
6.5 x64v3:
tags: [saas-linux-xlarge-amd64]
stage: build
only:
- branches
variables:
psabi: x86-64-v3
script:
- eval $mvcmd && eval $avcmd
artifacts:
name: "$CI_JOB_NAME~$CI_COMMIT_SHORT_SHA"
paths:
- assets/
exclude:
- assets/*dbg*
timeout: 1h
6.5 x64v4:
tags: [saas-linux-xlarge-amd64]
stage: build
only:
- branches
variables:
psabi: x86-64-v4
script:
- eval $mvcmd && eval $avcmd
artifacts:
name: "$CI_JOB_NAME~$CI_COMMIT_SHORT_SHA"
paths:
- assets/
exclude:
- assets/*dbg*
timeout: 1h