www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 33282d65dbf3dbc60133bae5a7b7724db14bac97
parent d67944d5aee5b68f5ed012f27e29ae17f60d1b6d
Author: Guillaume Bouchard <guillaum.bouchard@gmail.com>
Date:   Sun, 26 Apr 2020 14:44:47 +0200

Add simple CI. At least it checks that all targets build

Diffstat:
A.circleci/config.yml | 18++++++++++++++++++
Aall.nix | 4++++
Mdefault.nix | 7+++++++
3 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml @@ -0,0 +1,18 @@ +version: 2 + +jobs: + nix: + docker: + - image: nixos/nix:latest + working_directory: ~/NixGL + steps: + - checkout + - run: + name: Build all wrapper (with default version for nvidia) + command: nix-build ./all.nix + +workflows: + version: 2 + nix_stack: + jobs: + - nix diff --git a/all.nix b/all.nix @@ -0,0 +1,4 @@ +import ./default.nix { + nvidiaVersion = "440.82"; + nvidiaHash = "edd415acf2f75a659e0f3b4f27c1fab770cf21614e84a18152d94f0d004a758e"; +} diff --git a/default.nix b/default.nix @@ -29,8 +29,15 @@ let executable = true; destination = "/bin/${name}"; + checkPhase = '' ${nixpkgs.shellcheck}/bin/shellcheck "$out/bin/${name}" + + # Check that all the files listed in the output binary exists + for i in $(${nixpkgs.pcre}/bin/pcregrep -o0 '/nix/store/.*?/[^ ":]+' $out/bin/${name}) + do + ls $i > /dev/null || (echo "File $i, referenced in $out/bin/${name} does not exists."; exit -1) + done ''; };