forked from u-boot/u-boot
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
49 lines (40 loc) · 1.23 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
image: ayufan/rock64-dockerfiles:x86_64
variables:
GITHUB_USER: ayufan-rock64
GITHUB_REPO: linux-mainline-u-boot
USE_CCACHE: "true"
CCACHE_DIR: "/data/shared/ccache"
stages: [build]
before_script:
- ccache -M 0 -F 0
build:
stage: build
only: [branches]
script:
- rm -f ../*.deb
- export RELEASE=$((2000+$CI_PIPELINE_IID))
- ./dev-make BOARD_TARGET=rock64 -j5
- ./dev-make BOARD_TARGET=rockpro64 -j5
- ./dev-make BOARD_TARGET=pinebookpro -j5
- ./dev-make BOARD_TARGET=rockpi4b -j5
- |
set -x
export RELEASE_NAME="$(./dev-make version BOARD_TARGET=rock64)"
export RELEASE_TITLE="$(./dev-make version BOARD_TARGET=rock64)"
export DESCRIPTION="$CI_PROJECT_URL/pipelines/$CI_PIPELINE_ID"
github-release release \
--tag "${RELEASE_NAME}" \
--name "${RELEASE_TITLE}" \
--description "${DESCRIPTION}" \
--target "${CI_COMMIT_SHA}" \
--draft
for i in *.deb *.img.xz; do
github-release upload \
--tag "${RELEASE_NAME}" \
--name "${i}" \
--file "${i}"
done
github-release edit \
--tag "${RELEASE_NAME}" \
--name "${RELEASE_TITLE}" \
--description "${DESCRIPTION}"