diff options
author | eldritch horrors <pennae@lix.systems> | 2024-07-10 17:45:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@localhost> | 2024-07-10 17:45:17 +0000 |
commit | f0c751d4d62da9a5eb04a38b57e169488bb4ecc6 (patch) | |
tree | 650f69e20756086ffe570b74e98d758a0f522eeb /releng/release-tests.sh | |
parent | 3dced96741816db01f9990e0884224d38ee58390 (diff) | |
parent | f5aa5b6815e6cd9194c7dec03651066e4cab5783 (diff) |
Merge changes I81552018,Ieb65c133 into main
* changes:
releng: add releaseTests flake output, test script
add aarch64-linux as a cross-build target
Diffstat (limited to 'releng/release-tests.sh')
-rwxr-xr-x | releng/release-tests.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/releng/release-tests.sh b/releng/release-tests.sh new file mode 100755 index 000000000..c0a9b2e33 --- /dev/null +++ b/releng/release-tests.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env bash + +set -euo pipefail +shopt -s inherit_errexit failglob + +nixpkgss=( + "$(nix eval --impure --raw --expr '(import ./flake.nix).inputs.nixpkgs.url')" + "github:NixOS/nixpkgs/nixos-unstable-small" +) +jobs=( + $(nix eval \ + --json --apply ' + let f = n: t: + if builtins.isAttrs t + then (if t.type or "" == "derivation" + then [ n ] + else builtins.concatMap (m: f "${n}.${m}" t.${m}) (builtins.attrNames t)) + else []; + in f ".#.releaseTests" + ' \ + '.#.releaseTests' \ + | jq -r '.[]' + ) +) + +for override in "${nixpkgss}" +do + ( + set -x + nix build \ + --log-format multiline \ + --no-link \ + --override-input nixpkgs "$override" \ + "${jobs[@]}" + ) +done |