store additional files with builds (flake/startup/linkerscript/...)
This commit is contained in:
@ -174,25 +174,18 @@ my %handlers = (
|
||||
}
|
||||
|
||||
# Insert charts
|
||||
my $attach_image = sub {
|
||||
my ($name) = @_;
|
||||
|
||||
return unless ( -f "$local_archive_dir/$experiment/$name.svg" );
|
||||
|
||||
system(
|
||||
'cp', '-i',
|
||||
"$local_archive_dir/$experiment/$name.svg",
|
||||
"$local_obsidian_attach/${experiment}_$name.svg"
|
||||
);
|
||||
|
||||
system( 'obsidian', 'append', "file=zettel/$experiment",
|
||||
"content=![[${experiment}_$name.svg]]\n" );
|
||||
};
|
||||
|
||||
system(
|
||||
'obsidian', 'append',
|
||||
"file=zettel/$experiment", "content=## Charts\n\n"
|
||||
);
|
||||
|
||||
my $attach_image = sub {
|
||||
my ($name) = @_;
|
||||
|
||||
system( 'obsidian', 'append', "file=zettel/$experiment",
|
||||
"content=\n"
|
||||
);
|
||||
};
|
||||
$attach_image->("single_result");
|
||||
$attach_image->("scatter");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user