-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest-gitlab-ci.yml
executable file
·45 lines (42 loc) · 1.66 KB
/
test-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
variables:
MAKEFLAGS: "-j10"
VERBOSE: 1
PACMAN_OPTS: --needed --noconfirm
cache:
key: pkgs-v1
paths:
# For some reason Gitlab CI only supports storing cache/artifacts in a path relative to the build directory
- /var/cache/pacman/pkg/
.manjaro-test:
image: manjarolinux/build@sha256:f33bba9814b3ebe30616c961b87afc144710dbcc1066ec6f4c83ec23dc1bd719
before_script:
- cp $CI_PROJECT_DIR/makepkg.conf /etc/makepkg.conf
- cp $CI_PROJECT_DIR/pacman-manjaro-jp.conf /etc/pacman.conf
- pacman-key --init
- pacman-key --populate
- pacman-key --recv-keys "536487F1470D7187" --keyserver hkps://keyserver.ubuntu.com
- export GPG_TTY=$(tty)
- gpg -v --batch --import <(echo "$GPG_PRIVATE_KEY")
- pacman-key --import-trustdb ~/.gnupg/
- pacman-mirrors --geoip
- pacman -Sy
- pacman -Syu $PACMAN_OPTS
base-devel git clang llvm lld git-lfs openssh rsync lsb-release p7zip
docbook-xml libxslt bc cpio docbook-xsl inetutils pahole xmlto
- pacman -Syu $PACMAN_OPTS
# useradd -d /builds/{GITLAB_USER} -g users -M -N builder
manjaro:
extends: .manjaro-test
script:
- chown -R builder:users /root
- sudo -H -i -u builder && pwd && ls -l
- sudo -u builder git clone --depth 1 --single-branch https://gitlab.com/phoepsilonix/Manjaro-jp/;
- cd Manjaro-jp/Packages/linux515;
- sudo -u builder LLVM=1 LLVM_IAS=1 CC='clang' CXX='clang++' HOSTCC='clang' HOSTCXX='clang++' LD='ld.lld' makepkg -sCc --noconfirm --needed;
- mkdir -p /binaries;
- 7z a -v100m /binaries/linux515.7z *.zst src/linux-5.15/certs/signing_key.*;
artifacts:
paths:
- /binaries/
expire_in: 7 days
timeout: 24 hours