-
Notifications
You must be signed in to change notification settings - Fork 76
/
.gitlab-ci.yml
43 lines (40 loc) · 1.24 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
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-ti-linux-arm32-5.10.y"
paths:
- 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"
- . version.sh && echo $BRANCH
- mkdir -p /root/.cache/ccache/ || true
- tar --use-compress-program=lz4 -xf ccache.tar.lz4 -C / || true
- ccache -M 2G
- ccache -z
- cp -v system.sh.gitlab system.sh
- ./build_deb.sh
- du -sh deploy/linux-image-*.deb || true
- ccache -sv
- tar --use-compress-program=lz4 -cf ccache.tar.lz4 /root/.cache/ccache/
rules:
- if: $CI_COMMIT_TAG
when: never
- when: always
# artifacts:
# expire_in: 28 days
# when: on_success
# name: "$CI_PROJECT_NAME-ti-linux-arm32-5.10.y-$CI_JOB_ID"
# paths:
# - "deploy/linux-image-*.deb"