mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
configure initial CI script to build HermitCore on GitLab
This commit is contained in:
parent
b31f82ab47
commit
cf36fe039c
2 changed files with 60 additions and 0 deletions
41
.gitlab-ci.yml
Normal file
41
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
variables:
|
||||
IMAGE: ubuntu:with-hermitcore
|
||||
|
||||
stages:
|
||||
- prepare
|
||||
- build
|
||||
#- test
|
||||
|
||||
# Stage: prepare
|
||||
##############################################################################
|
||||
|
||||
docker:
|
||||
stage: prepare
|
||||
script:
|
||||
- docker build -t ${IMAGE} .
|
||||
tags:
|
||||
- shell
|
||||
- linux
|
||||
|
||||
# Stage: build
|
||||
##############################################################################
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- mkdir -p build
|
||||
- cd build
|
||||
- cmake -DTOOLCHAIN_BIN_DIR=/opt/hermit/bin -DCMAKE_INSTALL_PREFIX=/opt/hermit ..
|
||||
- make
|
||||
image: ${IMAGE}
|
||||
tags:
|
||||
- docker
|
||||
artifacts:
|
||||
untracked: true
|
||||
expire_in: 1 week
|
||||
paths:
|
||||
- ./
|
||||
|
||||
# Stage: test
|
||||
##############################################################################
|
||||
|
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Download base image ubuntu 18.04
|
||||
FROM ubuntu:18.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Install required packets from ubuntu repository
|
||||
RUN apt-get install -y apt-transport-https curl cmake bsdmainutils wget vim nano git binutils autoconf automake make cmake qemu-kvm qemu-system-x86 nasm gcc g++ ca-certificates build-essential libtool
|
||||
|
||||
# add path to hermitcore packets
|
||||
RUN echo "deb [trusted=yes] https://dl.bintray.com/hermitcore/ubuntu bionic main" | tee -a /etc/apt/sources.list
|
||||
|
||||
# Update Software repository
|
||||
RUN apt-get -qq update
|
||||
|
||||
# Install required packets from ubuntu repository
|
||||
RUN apt-get install -y --allow-unauthenticated binutils-hermit newlib-hermit pte-hermit gcc-hermit libhermit libomp-hermit
|
||||
|
||||
ENV PATH="/opt/hermit/bin:${PATH}"
|
||||
ENV EDITOR=vim
|
Loading…
Add table
Reference in a new issue