heads/.circleci/config.yml
2018-09-18 15:59:48 -04:00

101 lines
2.1 KiB
YAML

version: 2
jobs:
build:
docker:
- image: osresearch/heads-ubuntu:16.04
steps:
- run:
name: Install dependencies
command: |
apt update
apt install -y \
build-essential \
zlib1g-dev \
uuid-dev \
libdigest-sha-perl \
libelf-dev \
bc \
bzip2 \
bison \
flex \
git \
gnupg \
iasl \
m4 \
nasm \
patch \
python \
wget \
gnat \
cpio \
ccache \
lzma \
- checkout
- run:
name: Bootstrap make
command: |
make -j4 bootstrap
- run:
name: Bootstrap coreboot-gcc
command: |
./build/make-4.2.1/make \
TOOLCHAIN=/home/builder/heads \
V=1 \
BOARD=qemu-coreboot \
coreboot-gcc
- run:
name: qemu-coreboot
command: |
./build/make-4.2.1/make \
TOOLCHAIN=/home/builder/heads \
V=1 \
-j4 \
BOARD=qemu-coreboot \
- store-artifacts:
path: build/qemu-coreboot/coreboot.rom
- store-artifacts:
path: build/qemu-coreboot/hashes.txt
- run:
name: qemu-linuxboot
command: |
./build/make-4.2.1/make \
TOOLCHAIN=/home/builder/heads \
V=1 \
-j4 \
BOARD=qemu-linuxboot \
- store-artifacts:
path: build/qemu-linuxboot/linuxboot.rom
- store-artifacts:
path: build/qemu-linuxboot/hashes.txt
- run:
name: x230
command: |
./build/make-4.2.1/make \
TOOLCHAIN=/home/builder/heads \
-j4 \
V=1 \
BOARD=x230 \
- store-artifacts:
path: build/x230/coreboot.rom
- store-artifacts:
path: build/x230/hashes.txt
workflows:
version: 2
build_and_test:
jobs:
- build