ci: sync the shared CI tasks
Make cargoToolchain optional in nix/ci-tasks.nix, so repositories without Rust use the same file, and add a copy-build-output task that copies a build result into the checkout as writable files. The shared files in ci/ and nix/ci-tasks.nix stay identical across repositories. Claude-Session: https://claude.ai/code/session_01D8dLLgYd8cfR2aQfA5eZXa
This commit is contained in:
2 files changed
+29
-10
No files matched your search
@@ -74,6 +74,20 @@ def "main upload-exported-paths" []: nothing -> nothing {
|
||||
}
|
||||
}
|
||||
|
||||
def "main copy-build-output" [
|
||||
build_output: path
|
||||
destination: path
|
||||
]: nothing -> nothing {
|
||||
if ($build_output | path expand | path type) == dir {
|
||||
mkdir $destination
|
||||
for output_entry in (ls $build_output | get name) {
|
||||
cp --recursive --preserve [] $output_entry $destination
|
||||
}
|
||||
} else {
|
||||
cp --preserve [] $build_output $destination
|
||||
}
|
||||
}
|
||||
|
||||
def main []: nothing -> nothing {
|
||||
print "Run a subcommand, for example: build-and-export-paths"
|
||||
}
|
||||
Reference in new issue
Block a user