+41
Diff
round #0
+41
.tangled/workflows/build.yml
+41
.tangled/workflows/build.yml
···
1
+
when:
2
+
- event: push
3
+
branches: ["main"]
4
+
- event: pull_request
5
+
branches: ["main"]
6
+
7
+
# NOTE: urithiru (macOS) target cannot be built here - Spindle only supports
8
+
# Linux Docker containers. Only the kharbranth (NixOS) target is built.
9
+
10
+
engine: nixery
11
+
12
+
clone:
13
+
depth: 0
14
+
15
+
dependencies:
16
+
nixpkgs/nixpkgs-unstable:
17
+
- nix
18
+
- cachix
19
+
- bash
20
+
- coreutils
21
+
- gnugrep
22
+
23
+
steps:
24
+
- name: configure cachix
25
+
command: |
26
+
cachix authtoken "$CACHIX_AUTH_TOKEN"
27
+
cachix use iff-fleet
28
+
29
+
- name: build kharbranth
30
+
command: |
31
+
set -o pipefail
32
+
nix --accept-flake-config build .#top.kharbranth --fallback -v --log-format raw \
33
+
> >(tee /tangled/workspace/nix-build-out.log) \
34
+
2> >(tee /tangled/workspace/nix-build-err.log >&2) || {
35
+
drv=$(grep "For full logs, run" /tangled/workspace/nix-build-err.log | grep -oE "/nix/store/.*.drv")
36
+
if [ -n "$drv" ]; then
37
+
nix log "$drv"
38
+
echo "$drv"
39
+
fi
40
+
exit 1
41
+
}