mirror of
https://gitlab.com/mecatronyx/opencnc/experiments/opencn-rootfs.git
synced 2026-09-23 02:23:37 +08:00
Update .gitlab-ci.yml
This commit is contained in:
+14
-8
@@ -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-*"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user