Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
274a7be8d5 | ||
|
|
ec42ef03a5 | ||
|
|
c850e982ad | ||
|
|
3130e8dc4c | ||
|
|
3b6ed967df | ||
|
|
95477d7711 | ||
|
|
9776693c4f | ||
|
|
8586ef5a3c | ||
|
|
5411aaf293 | ||
|
|
f4638b64a1 |
No files matched your search
@@ -22,7 +22,9 @@ jobs:
|
||||
name: '${{ env.CACHIX_NAME }}'
|
||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- run: cachix use nixos-nix-install-tests
|
||||
- run: nix-build -A checks.$(nix-instantiate --eval -E '(builtins.currentSystem)')
|
||||
- run: bash scripts/test-against-master.sh
|
||||
check_cachix:
|
||||
name: Cachix secret present for installer tests
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -504,6 +504,12 @@
|
||||
} "touch $out";
|
||||
});
|
||||
|
||||
lib = {
|
||||
testAgainst = forAllSystems (system:
|
||||
testNixVersions nixpkgsFor.${system} nixpkgsFor.${system}.nix
|
||||
);
|
||||
};
|
||||
|
||||
packages = forAllSystems (system: {
|
||||
inherit (nixpkgsFor.${system}) nix;
|
||||
} // (nixpkgs.lib.optionalAttrs (builtins.elem system linux64BitSystems) {
|
||||
|
||||
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
set -x;
|
||||
|
||||
CurrentNixDir=$(pwd)
|
||||
CurrentRev=${GITHUB_SHA:-$(git rev-parse HEAD)}
|
||||
WorkDir=$(mktemp -d)
|
||||
trap 'rm -rf "$WorkDir"' EXIT
|
||||
GITHUB_TOKEN_OPTION=()
|
||||
if [[ -n "${GITHUB_TOKEN:-}" ]]; then
|
||||
GITHUB_TOKEN_OPTION=("--option" "access-tokens" "github.com=$GITHUB_TOKEN")
|
||||
fi
|
||||
|
||||
pushd "$WorkDir"
|
||||
|
||||
git clone "https://github.com/nixos/nix"
|
||||
|
||||
cat <<EOF > default.nix
|
||||
let
|
||||
currentNix = import $CurrentNixDir;
|
||||
masterNix = import ./nix;
|
||||
in
|
||||
currentNix.lib.testAgainst.\${builtins.currentSystem} masterNix.defaultPackage.\${builtins.currentSystem}
|
||||
EOF
|
||||
|
||||
nix-build "${GITHUB_TOKEN_OPTION[@]}"
|
||||
|
||||
popd
|
||||
Reference in new issue
Block a user