-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
50 lines (47 loc) · 1.47 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
image: robertcnelson/beagle-devscripts-kernel-debian-12-amd64:latest
# https://openbeagle.org/beagleboard/ci-docker-images
before_script:
- export PATH=/usr/lib/ccache:$PATH
- echo "Acquire::http::Proxy \"http://192.168.1.10:3142\";" > /etc/apt/apt.conf.d/00aptproxy
- apt-get update
- apt-get upgrade -yq
- apt-get dist-upgrade -yq
- cd /opt/linux-src/ ; git pull ; cd -
cache:
key: "$CI_PROJECT_NAME-v6.9.x"
paths:
- mirror/x86_64-gcc-13.3.0-nolibc-riscv64-linux.tar.xz
- ccache.tar.lz4
build:
tags:
- docker-amd64
stage: build
script:
- git config --global user.email "$GITLAB_USER_EMAIL"
- git config --global user.name "$GITLAB_USER_NAME"
- touch .gitlab-runner
- mkdir -p /root/.cache/ccache/ || true
- tar --use-compress-program=lz4 -xf ccache.tar.lz4 -C / || true
- ccache -M 2G
- ccache -z
- ./01_git_sync.sh
- ./02_build_opensbi.sh
- ./03_build_uboot.sh
- ./04_build_linux.sh
- ./05_generate_boot.sh
- ./06_generate_debian_console_root.sh
- xz -vT8 deploy/boot.ext4
- xz -vT8 deploy/root.ext4
- ccache -sv
- tar --use-compress-program=lz4 -cf ccache.tar.lz4 /root/.cache/ccache/
- du -sh ccache.tar.lz4
artifacts:
when: on_success
expire_in: 28 days
name: "$CI_PROJECT_NAME-v6.9.x-$CI_JOB_ID"
paths:
- "deploy/fastboot_emmc.sh"
- "deploy/mac_fastboot_emmc.sh"
- "deploy/u-boot-with-spl.bin"
- "deploy/boot.ext4.xz"
- "deploy/root.ext4.xz"