Compile ovni with older GCC versions
This commit is contained in:
parent
ee462d92e8
commit
1ea1768728
@ -15,9 +15,16 @@ build:debian-testing:
|
|||||||
paths:
|
paths:
|
||||||
- install/
|
- install/
|
||||||
|
|
||||||
|
build:old-gcc:
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- nix
|
||||||
|
script:
|
||||||
|
- nix build -L --tarball-ttl 0 --file nix/rt.nix bsc.oldOvnis
|
||||||
|
|
||||||
build:rt-tests:
|
build:rt-tests:
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
- nix
|
- nix
|
||||||
script:
|
script:
|
||||||
- nix build -L --tarball-ttl 0 --file nix/rt.nix
|
- nix build -L --tarball-ttl 0 --file nix/rt.nix bsc.ovni-rt
|
||||||
|
22
nix/rt.nix
22
nix/rt.nix
@ -87,6 +87,26 @@ let
|
|||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
# Build ovni with old gcc versions
|
||||||
|
genOldOvni = stdenv: (last.ovni.override {
|
||||||
|
stdenv = stdenv;
|
||||||
|
}).overrideAttrs (old: {
|
||||||
|
pname = old.name + "@" + stdenv.cc.cc.version;
|
||||||
|
});
|
||||||
|
|
||||||
|
oldCompilers = [
|
||||||
|
#pkgs.gcc49Stdenv
|
||||||
|
pkgs.gcc6Stdenv
|
||||||
|
pkgs.gcc7Stdenv
|
||||||
|
pkgs.gcc8Stdenv
|
||||||
|
pkgs.gcc9Stdenv
|
||||||
|
pkgs.gcc10Stdenv
|
||||||
|
pkgs.gcc11Stdenv
|
||||||
|
pkgs.gcc12Stdenv
|
||||||
|
];
|
||||||
|
|
||||||
|
oldOvnis = map last.genOldOvni last.oldCompilers;
|
||||||
|
|
||||||
# Now we rebuild ovni with the Nanos6 and nOS-V versions, which were
|
# Now we rebuild ovni with the Nanos6 and nOS-V versions, which were
|
||||||
# linked to the previous ovni. We need to be able to exit the chroot
|
# linked to the previous ovni. We need to be able to exit the chroot
|
||||||
# to run Nanos6 tests, as they require access to /sys for hwloc
|
# to run Nanos6 tests, as they require access to /sys for hwloc
|
||||||
@ -108,4 +128,4 @@ let
|
|||||||
});
|
});
|
||||||
|
|
||||||
in
|
in
|
||||||
bsc.ovni-rt
|
pkgs // { bsc = bsc; }
|
||||||
|
Loading…
Reference in New Issue
Block a user