feature add after_commands

This commit is contained in:
tqcq 2023-11-17 11:33:34 +08:00
parent e5df51249b
commit 0d681c5131

View File

@ -3,6 +3,8 @@ type: docker
name: default
steps:
{{ $prepare_commands := .input.prepare_commands }}
{{ $before_commands := .input.before_commands }}
{{ $after_commands := .input.after_commands }}
{{ $default_build_types := .input.default_build_types }}
{{ range .input.builds }}
{{ $image_name := .image_name }}
@ -21,6 +23,10 @@ steps:
- cmake . -Bbuild-{{$image_name}}-{{.}} -DCMAKE_BUILD_TYPE={{.}}
- cmake --build build-{{$image_name}}-{{.}} --config {{.}} -- -j`nproc`
{{end}}
{{ range $after_commands }}
- {{ . }}
{{ end }}
{{ end }}
- name: list all build dir