ci: add gcroots for successful builds
This commit is contained in:
parent
5380a08627
commit
f2533d8892
@ -108,8 +108,21 @@ let
|
|||||||
# create a ShellCommand for each stage and add them to the build
|
# create a ShellCommand for each stage and add them to the build
|
||||||
stages = self.extract_stages(self.observer.getStdout())
|
stages = self.extract_stages(self.observer.getStdout())
|
||||||
self.build.addStepsAfterCurrentStep([
|
self.build.addStepsAfterCurrentStep([
|
||||||
steps.ShellCommand(name=stage, command=[stages[stage]])
|
steps.ShellCommand(
|
||||||
for stage in stages
|
name=stage,
|
||||||
|
env=dict(
|
||||||
|
build_name = stage,
|
||||||
|
build_script = stages[stage],
|
||||||
|
),
|
||||||
|
command="${pkgs.writeDash "build.sh" ''
|
||||||
|
set -xefu
|
||||||
|
profile=${shell.escape profileRoot}/$build_name
|
||||||
|
result=$("$build_script")
|
||||||
|
if [ -n "$result" ]; then
|
||||||
|
${pkgs.nix}/bin/nix-env -p "$profile" --set "$result"
|
||||||
|
fi
|
||||||
|
''}",
|
||||||
|
) for stage in stages
|
||||||
])
|
])
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user