Merge pull request #715 from tlaurion/circle_ci_based_on_debian_bullseye_with_x230-flash_and_reproducibility_troubleshooting_helpers

CIs: pass CircleCI to debian:bullseye docker image
This commit is contained in:
tlaurion 2020-05-15 19:20:04 -04:00 committed by GitHub
commit fa35b3c557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,14 +2,22 @@ version: 2
jobs: jobs:
build: build:
docker: docker:
- image: osresearch/musl-cross:38e52db - image: debian:bullseye
steps: 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 pkg-config cmake libusb-1.0-0-dev autoconf texinfo ncurses-dev
- checkout - checkout
- restore_cache:
key: heads-{{ .Branch }}{{ .Environment.CACHE_VERSION }}
- run: - run:
name: Bootstrap make name: git reset
command: | command: |
make -j4 bootstrap git reset --hard "$CIRCLE_SHA1" \
# linuxboot steps need something to pass in the kernel header path # linuxboot steps need something to pass in the kernel header path
# skipping for now # skipping for now
@ -40,31 +48,61 @@ jobs:
- run: - run:
name: qemu-coreboot name: qemu-coreboot
command: | command: |
./build/make-4.2.1/make \ rm -rf build/make-4.2.1/ build/qemu-coreboot/* && make --load 2 \
CROSS=/cross/bin/x86_64-linux-musl- \
--load 2 \
V=1 \ V=1 \
BOARD=qemu-coreboot \ BOARD=qemu-coreboot \
no_output_timeout: 3h
- run:
name: Output qemu-coreboot hashes
command: |
cat build/qemu-coreboot/hashes.txt \
- store-artifacts: - store-artifacts:
path: build/qemu-coreboot/coreboot.rom path: build/qemu-coreboot/coreboot.rom
- store-artifacts: - store-artifacts:
path: build/qemu-coreboot/hashes.txt path: build/qemu-coreboot/hashes.txt
- run:
name: x230-flash
command: |
make --load 2 \
V=1 \
BOARD=x230-flash \
no_output_timeout: 3h
- run:
name: Ouput x230-flash hashes
command: |
cat build/x230-flash/hashes.txt \
- run: - run:
name: x230 name: x230
command: | command: |
./build/make-4.2.1/make \ make --load 2 \
CROSS=/cross/bin/x86_64-linux-musl- \
--load 2 \
V=1 \ V=1 \
BOARD=x230 \ BOARD=x230 \
no_output_timeout: 3h
- run:
name: Ouput x230 hashes
command: |
cat build/x230/hashes.txt \
- run:
name: Archiving build logs to bundle in artifacts
command: |
tar zcvf logs.tar.gz ./build/log/*
- store-artifacts:
path: build/x230-flash/x230-flash.rom
- store-artifacts: - store-artifacts:
path: build/x230/coreboot.rom path: build/x230/coreboot.rom
- store-artifacts: - store-artifacts:
path: build/x230/hashes.txt path: build/x230/initrd.cpio.xz
- store-artifacts:
path: logs.tar.gz
- save_cache:
key: heads-{{ .Branch }}{{ .Environment.CACHE_VERSION }}
paths:
- packages
- crossgcc
- build
workflows: workflows:
version: 2 version: 2