From d6c83c06a3f99509b55ee54ca633f447fc19db5f Mon Sep 17 00:00:00 2001 From: genofire Date: Sun, 22 May 2022 15:28:51 +0200 Subject: [PATCH] chore(gitlab): import ci from babel-ci branch - just for breminale --- .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d2925f4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +stages: + - build + +variables: + GIT_CLEAN_FLAGS: "none" + GIT_STRATEGY: "fetch" + GIT_SUBMODULE_STRATEGY: "recursive" + GLUON_SITEDIR: "$CI_PROJECT_DIR" + GLUON_DIR: "$CI_PROJECT_DIR/gluon/" + +before_script: + - export GLUON_RELEASE="$(git describe --tags --dirty=+ | sed 's/^v//g')~$(git rev-parse --abbrev-ref HEAD)${CI_PIPELINE_ID}" + +.job_build: + tags: + - gluon + stage: build + timeout: 4h 30m + script: + - cd "gluon" + - env + - make update V=s + - make --jobs=$(grep -c '^processor' /proc/cpuinfo) --output-sync=recurse + + +### +# Build per target +### + +'build: ar71xx-generic': + extends: .job_build + variables: + GLUON_TARGET: "ar71xx-generic"