Compare commits

..

12 Commits

Author SHA1 Message Date
bed3d8ce31 Remove gcc from tampi *buildInputs 2025-09-12 14:47:00 +02:00
94068997d9 Fix strictDeps ovni 2025-09-12 14:47:00 +02:00
ffcb91bd8d Fix strictDeps osu 2025-09-12 14:46:56 +02:00
ce3ae340fc Fix strictDeps mercurium 2025-09-12 14:46:56 +02:00
163a409c80 Fix strictDeps tampi 2025-09-12 14:46:56 +02:00
22921b9823 Fix strictDeps sonar 2025-09-12 14:46:56 +02:00
7431fd6057 Fix strictDeps nanos6 2025-09-12 14:46:56 +02:00
b63528025d Fix strictDeps paraver 2025-09-12 14:46:56 +02:00
ae5345ea62 Fix strictDeps ompss2 2025-09-12 14:46:55 +02:00
29b3129517 Fix strictDeps intel 2023 2025-09-12 14:46:55 +02:00
1138e46b73 Fix strictDeps bench6 2025-09-12 14:46:55 +02:00
cf7948e3c9 Fix strictDeps bigotes 2025-09-12 14:46:55 +02:00
4 changed files with 58 additions and 96 deletions

View File

@@ -1,15 +0,0 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:all:
runs-on: native
steps:
- uses: https://gitea.com/ScMi1/checkout@v1.4
- run: nix build -L --no-link --print-out-paths .#bsc-ci.all

View File

@@ -3,22 +3,16 @@
outputs = { self, nixpkgs, ...}: outputs = { self, nixpkgs, ...}:
let let
pkgs = import nixpkgs {
# For now we only support x86 # For now we only support x86
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlays.default ]; overlays = [ self.overlays.default ];
}; };
in in
{ {
bscOverlay = import ./overlay.nix; bscOverlay = import ./overlay.nix;
overlays.default = self.bscOverlay; overlays.default = self.bscOverlay;
# full nixpkgs with our overlay applied legacyPackages.x86_64-linux = pkgs;
legacyPackages.${system} = pkgs;
hydraJobs = {
inherit (self.legacyPackages.${system}.bsc-ci) tests pkgs cross;
};
# propagate nixpkgs lib, so we can do bscpkgs.lib # propagate nixpkgs lib, so we can do bscpkgs.lib
inherit (nixpkgs) lib; inherit (nixpkgs) lib;

View File

@@ -6,6 +6,9 @@ with final.lib;
let let
callPackage = final.callPackage; callPackage = final.callPackage;
mkDeps = name: pkgs: final.runCommand name { }
"printf '%s\n' ${toString (collect (x: x ? outPath) pkgs)} > $out";
bscPkgs = { bscPkgs = {
bench6 = callPackage ./pkgs/bench6/default.nix { }; bench6 = callPackage ./pkgs/bench6/default.nix { };
bigotes = callPackage ./pkgs/bigotes/default.nix { }; bigotes = callPackage ./pkgs/bigotes/default.nix { };
@@ -46,7 +49,13 @@ let
wxparaver = callPackage ./pkgs/paraver/default.nix { }; wxparaver = callPackage ./pkgs/paraver/default.nix { };
}; };
tests = rec { in bscPkgs // {
# Prevent accidental usage of bsc attribute
bsc = throw "the bsc attribute is deprecated, packages are now in the root";
# Internal for our CI tests
bsc-ci = {
test = rec {
#hwloc = callPackage ./test/bugs/hwloc.nix { }; # Broken, no /sys #hwloc = callPackage ./test/bugs/hwloc.nix { }; # Broken, no /sys
#sigsegv = callPackage ./test/reproducers/sigsegv.nix { }; #sigsegv = callPackage ./test/reproducers/sigsegv.nix { };
hello-c = callPackage ./test/compilers/hello-c.nix { }; hello-c = callPackage ./test/compilers/hello-c.nix { };
@@ -79,41 +88,17 @@ let
}; };
}; };
pkgs = filterAttrs (_: isDerivation) bscPkgs; pkgs = final.runCommand "ci-pkgs" { }
"printf '%s\n' ${toString (collect isDerivation bscPkgs)} > $out";
crossTargets = [ "riscv64" ]; tests = final.runCommand "ci-tests" { }
cross = prev.lib.genAttrs crossTargets (target: "printf '%s\n' ${toString (collect isDerivation final.bsc-ci.test)} > $out";
final.pkgsCross.${target}.bsc-ci.pkgs
);
buildList = name: paths: all = final.runCommand "ci-all" { }
final.runCommandLocal name { } '' ''
printf '%s\n' ${toString paths} | tee $out deps="${toString [ final.bsc-ci.pkgs final.bsc-ci.tests ]}"
'';
buildList' = name: paths:
final.runCommandLocal name { } ''
deps="${toString paths}"
cat $deps cat $deps
printf '%s\n' $deps >$out printf '%s\n' $deps > $out
''; '';
crossList = builtins.mapAttrs (t: v: buildList t (builtins.attrValues v)) cross;
pkgsList = buildList "ci-pkgs" (builtins.attrValues pkgs);
testList = buildList "ci-tests" (collect isDerivation tests);
all = buildList' "ci-all" [ pkgsList testList ];
in bscPkgs // {
# Prevent accidental usage of bsc attribute
bsc = throw "the bsc attribute is deprecated, packages are now in the root";
# Internal for our CI tests
bsc-ci = {
inherit pkgs pkgsList;
inherit tests testList;
inherit cross crossList;
inherit all;
}; };
} }

View File

@@ -43,22 +43,20 @@ let
source = if (useGit) then git else release; source = if (useGit) then git else release;
in stdenv.mkDerivation { in stdenv.mkDerivation rec {
pname = "clang-ompss2"; pname = "clang-ompss2";
inherit (source) src version; inherit (source) src version;
enableParallelBuilding = true; enableParallelBuilding = true;
isClang = true;
passthru = { passthru = {
CC = "clang"; CC = "clang";
CXX = "clang++"; CXX = "clang++";
isClang = true;
isClangWithOmpss = true;
inherit gcc zlib;
}; };
isClangWithOmpss = true;
nativeBuildInputs = [ nativeBuildInputs = [
bash bash
cmake cmake