~aasg/nixexprs

f70d7dd4594a0bbbf75abeab235fa7f61853a491 — Aluísio Augusto Silva Gonçalves 5 days ago be10c38
ci: Build for NixOS 20.09

Even though it's unreleased, we can start building packages for it.
1 files changed, 23 insertions(+), 0 deletions(-)

A .builds/nixos-20.09.yml
A .builds/nixos-20.09.yml => .builds/nixos-20.09.yml +23 -0
@@ 0,0 1,23 @@
image: nixos/latest # TODO: replace with nixos/20.09 once it's available
repositories:
  nixos: https://nixos.org/channels/nixos-20.09
packages:
  - nixos.cachix
sources:
  - https://git.sr.ht/~aasg/nixexprs
secrets:
  - 06d44cfd-6ded-45c4-9ef4-8e1433f9054e
tasks:
  - prepare: |
      cachix use aasg-nixexprs
      nix path-info --all | grep -v '\.drv$' | sort >pre-build-paths
  - build: |
      nix-build --no-out-link --keep-going --keep-failed nixexprs || touch FAILED
  - cache: |
      nix path-info --all | grep -v '\.drv$' | sort >post-build-paths
      comm -13 pre-build-paths post-build-paths | cachix push aasg-nixexprs
  - finish: |
      if [[ -f FAILED ]]; then
        echo "Build failed. See logs of the build task for details."
        exit 1
      fi