This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 107
/
Copy path.gitlab-ci.yml
88 lines (82 loc) · 2.07 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
image: $CI_REGISTRY_IMAGE/xanmod-toolchain:latest
before_script:
- apt-get update; apt-get upgrade -y --no-install-recommends
- 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-14' HOSTCC='gcc-14' 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.11 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.11 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.11 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.11 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