From db8c349f80f55cff50457ff854bcb3904b5eef5e Mon Sep 17 00:00:00 2001 From: Peter Lichard Date: Sat, 6 Jun 2020 07:17:56 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cb3906a..3f963b8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,18 +1,23 @@ -# This file is a template, and might need editing before it works on your project. -# use the official gcc image, based on debian -# can use verions as well, like gcc:5.2 -# see https://hub.docker.com/_/gcc/ image: gcc:7.5.0 -build: +build-qemu: stage: build - # instead of calling g++ directly you can also use some build toolkit like make - # install the necessary build tools when needed before_script: - apt update && apt -y install make autoconf cpio rsync bc - export FORCE_UNSAFE_CONFIGURE=1 script: - - cd rootfs && make opencn_qemu_defconfig && make source && make + - cd rootfs && make opencn_qemu_defconfig && make -s source && make -s + artifacts: + paths: + - rootfs + +build-x86: + stage: build + before_script: + - apt update && apt -y install make autoconf cpio rsync bc + - export FORCE_UNSAFE_CONFIGURE=1 + script: + - cd rootfs && make opencn_x86_defconfig && make -s source && make -s artifacts: paths: - rootfs @@ -20,4 +25,5 @@ build: cache: paths: - "buildroot/dl" + - "rootfs/build/host-*"