-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
33 lines (31 loc) · 969 Bytes
/
.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
image: robertcnelson/beagle-devscripts-kernel-debian-12-amd64
# https://git.beagleboard.org/beagleboard/ci-docker-images
cache:
key: "$CI_PROJECT_NAME-am33x-v6.7"
paths:
- dl/*.tar.xz
- ccache.tar.gz
build:
tags:
- docker-amd64
stage: build
script:
- sed -i -e 's:gcc_13_arm:gcc_13_arm:g' version.sh
- . version.sh && echo $BRANCH
- mkdir -p /root/.cache/ccache/ || true
- ccache -s
- tar -xf ccache.tar.gz -C / || true
- ccache -s
- cp -v system.sh.sample system.sh
- echo "AUTO_BUILD=1" >> system.sh
- echo "LINUX_GIT=/mnt/yocto-cache/git/linux-src/" >> system.sh
- git config --global --add safe.directory /mnt/yocto-cache/git/linux-src
- ./build_deb.sh
- du -sh deploy/linux-image-*.deb || true
- ccache -s
- tar -cf ccache.tar.gz /root/.cache/ccache/
artifacts:
expire_in: 28 days
name: "$CI_PROJECT_NAME-am33x-v6.7-$CI_JOB_ID"
paths:
- "deploy/linux-image-*.deb"