diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..08b786e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,6 @@ +build:ci: + stage: build + tags: + - nix + script: + - nix shell '.#bench6' 'jungle#bigotes' --command sh -c "test/run.sh" diff --git a/flake.nix b/flake.nix index 10dde15..e3112f3 100644 --- a/flake.nix +++ b/flake.nix @@ -9,25 +9,29 @@ targetMachine = jungle.outputs.nixosConfigurations.hut; pkgs = targetMachine.pkgs; in { - packages.x86_64-linux.default = pkgs.stdenv.mkDerivation rec { - pname = "bench6"; - version = if self ? shortRev then self.shortRev else "dirty"; + packages.x86_64-linux = rec { + default = bench6; + bench6 = pkgs.stdenv.mkDerivation rec { + pname = "bench6"; + version = if self ? shortRev then self.shortRev else "dirty"; - src = self.outPath; + src = self.outPath; - buildInputs = with pkgs; [ - cmake - clangOmpss2 - nanos6 - nodes - nosv - mpi - tampi - ]; + buildInputs = with pkgs; [ + bigotes + cmake + clangOmpss2 + nanos6 + nodes + nosv + mpi + tampi + ]; - enableParallelBuilding = false; - hardeningDisable = [ "all" ]; - dontStrip = true; + enableParallelBuilding = false; + hardeningDisable = [ "all" ]; + dontStrip = true; + }; }; }; } diff --git a/test/run.sh b/test/run.sh new file mode 100755 index 0000000..250c342 --- /dev/null +++ b/test/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +bigotes b6_heat_nanos6 -s 2048 -t 10 -b 64