Commit f8422fa7 authored by Adam Wujek's avatar Adam Wujek

.gitlab-ci.yml: update

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent dd967c13
Pipeline #5282 failed with stage
in 3 minutes and 32 seconds
......@@ -4,12 +4,26 @@ stages:
job_wrs_compile:
stage: wrs_sw_compile
script:
- apt update && apt upgrade -y && apt install -y git make build-essential m4 gettext bison flex texinfo libncurses-dev libncursesw5-dev bc python unzip wget cpio locales
- locale-gen en_US.UTF-8
# use the user who triggered a job to appear in binaries
- echo "[user]" > ~/.gitconfig
- echo " name = CI ${GITLAB_USER_NAME}" >> ~/.gitconfig
- cd ..
- echo "Remove leftovers from the previous build"
- pwd
- ls -l
- cd wr-switch-sw && git clean -fdx
- cd wr-switch-sw/userspace/ppsi && git clean -fdx
- rm -rf *.tar
- rm -rf *.log
- rm -rf build
- echo "Using `grep -c ^processor /proc/cpuinfo` parallel jobs"
- MAKEFLAGS="-j `grep -c ^processor /proc/cpuinfo`" wr-switch-sw/build/wrs_build-all > ${CI_PROJECT_DIR}/log_${CI_JOB_ID}.txt
- cp *.tar ${CI_PROJECT_DIR}
artifacts:
name: "wrs_sw_ci_${CI_JOB_ID}"
when: always
paths:
- log_${CI_JOB_ID}.txt
- ./*.tar
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment