-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (37 loc) · 1.07 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
stages:
- test
- build
nixpkgs-fmt:
stage: test
image: nixery.dev/shell/nixpkgs-fmt
script:
- nixpkgs-fmt --check .
.build:
stage: build
variables:
CACHIX_AUTH_TOKEN: $CACHIX_TOKEN
script:
- |
bash build-cache.bash
.build docker:
variables:
USER: root
before_script:
- |
mkdir -p /etc/nix
echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
echo "substituters = https://indexyz.cachix.org https://cache.nixos.org/" >> /etc/nix/nix.conf
echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= indexyz.cachix.org-1:biBEnuZ4vTSsVMr8anZls+Lukq8w4zTHAK8/p+fdaJQ=" >> /etc/nix/nix.conf
groupadd -r nixbld
for n in $(seq 1 `nproc`); do useradd -c "Nix build user $n" -d /var/empty -g nixbld -G nixbld -M -N -r nixbld$n; done
build linux:
extends:
- .build
- .build docker
image: nixery.dev/shell/nix/gnugrep/cachix/git/shadow/jq
build linux aarch64:
extends:
- .build
tags:
# FIXME: using shell executor currently, switch to docker executor
- aarch64-linux-shell