From 4d4dbe669ca97febfbe8e7233c49dbc283b02677 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 25 Apr 2024 17:38:24 +0200 Subject: [PATCH] Test CI --- .gitlab-ci.yml | 6 ++++++ flake.nix | 36 ++++++++++++++++++++---------------- test/run.sh | 3 +++ 3 files changed, 29 insertions(+), 16 deletions(-) create mode 100644 .gitlab-ci.yml create mode 100755 test/run.sh 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