Skip to content

Commit

Permalink
Switch CI builder image from debian to nix
Browse files Browse the repository at this point in the history
  • Loading branch information
mmlb committed Jan 11, 2023
1 parent 92f0a40 commit 53e869f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,11 @@ commands:
subcommand:
type: string
steps:
- run:
name: Install dependencies
command: |
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime
apt update
apt install -y build-essential zlib1g-dev uuid-dev libdigest-sha-perl libelf-dev bc bzip2 bison flex git gnupg gawk iasl m4 nasm patch python python2 python3 wget gnat cpio ccache pkg-config cmake libusb-1.0-0-dev autoconf texinfo ncurses-dev doxygen graphviz udev libudev1 libudev-dev automake libtool rsync innoextract sudo libssl-dev device-tree-compiler u-boot-tools
- run:
name: Make Board
command: |
rm -rf build/<<parameters.arch>>/<<parameters.target>>/* build/<<parameters.arch>>/log/* && make V=1 BOARD=<<parameters.target>> <<parameters.subcommand>> || touch ./tmpDir/failed_build
rm -rf build/<<parameters.arch>>/<<parameters.target>>/* build/<<parameters.arch>>/log/* &&
nix-shell --pure 'make V=1 BOARD=<<parameters.target>> <<parameters.subcommand>>' || touch ./tmpDir/failed_build
no_output_timeout: 3h
- run:
name: Output hashes
Expand Down Expand Up @@ -86,6 +81,7 @@ jobs:
#If precedent cache not found. Restore cache for musl-cross-make module digest (rarely modified).
#Otherwise, we build cleanly.
- heads-musl-cross-{{ checksum "./tmpDir/musl-cross.sha256sums" }}{{ .Environment.CACHE_VERSION }}

- run:
name: Download and neuter xx20 ME (keep generated GBE and extracted IFD in tree)
command: |
Expand Down Expand Up @@ -141,7 +137,7 @@ jobs:

build:
docker:
- image: debian:11
- image: nixos/nix:2.12.0
resource_class: large
parameters:
arch:
Expand All @@ -161,7 +157,7 @@ jobs:

save_cache:
docker:
- image: debian:11
- image: nixos/nix:2.12.0
resource_class: large
steps:
- attach_workspace:
Expand Down

0 comments on commit 53e869f

Please sign in to comment.