From 7b259aed1ab69618bfe4681b358d5f2568b58866 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 25 Apr 2024 19:06:57 +0200 Subject: [PATCH] Add master variant for CI --- flake.nix | 7 +++++++ test/ci.sh | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 test/ci.sh diff --git a/flake.nix b/flake.nix index e3112f3..c5b2672 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,13 @@ hardeningDisable = [ "all" ]; dontStrip = true; }; + + bench6Master = bench6.overrideAttrs (old: { + src = builtins.fetchGit { + url = "https://pm.bsc.es/gitlab/rarias/bench6.git"; + ref = "master"; + }; + }); }; }; } diff --git a/test/ci.sh b/test/ci.sh new file mode 100755 index 0000000..cef80ff --- /dev/null +++ b/test/ci.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +set -x + +# Allow impure evaluation so we fetch the latest commit from the repo +bench6_ref=$(nix build --print-out-paths --impure ".#bench6Master") +bench6_cur=$(nix build --print-out-paths ".#bench6") + +# Add bigotes to the path +bigotes=$(nix build --print-out-paths 'jungle#bigotes') +export PATH="$bigotes/bin:$PATH" + +bigotes "${bench6_ref}/bin/b6_heat_nanos6" -s 2048 -t 10 -b 64 +bigotes "${bench6_cur}/bin/b6_heat_nanos6" -s 2048 -t 10 -b 64