feature support CURRENT_BUILD_DIR
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0d681c5131
commit
d4d8fd46da
@ -6,15 +6,26 @@ steps:
|
||||
{{ $before_commands := .input.before_commands }}
|
||||
{{ $after_commands := .input.after_commands }}
|
||||
{{ $default_build_types := .input.default_build_types }}
|
||||
|
||||
{{ range .input.builds }}
|
||||
{{ $image_name := .image_name }}
|
||||
- name: build {{ .image_name }}
|
||||
image: dockcross/{{ .image_name }}
|
||||
commands:
|
||||
{{/* set build dir to env */}}
|
||||
- export CURRENT_BUILD_DIR=build-{{$image_name}}
|
||||
|
||||
{{/* >>> expand prepare commands */}}
|
||||
{{ range $prepare_commands }}
|
||||
- {{ . }}
|
||||
{{ end }}
|
||||
|
||||
{{/* >>> expand before commands */}}
|
||||
{{ range $before_commands }}
|
||||
- {{ . }}
|
||||
{{ end }}
|
||||
|
||||
{{/* >>> expand commands */}}
|
||||
{{ $build_types := $default_build_types }}
|
||||
{{ if .build_types }}
|
||||
{{ $build_types := .build_types }}
|
||||
@ -24,6 +35,7 @@ steps:
|
||||
- cmake --build build-{{$image_name}}-{{.}} --config {{.}} -- -j`nproc`
|
||||
{{end}}
|
||||
|
||||
{{/* >>> expand after commands */}}
|
||||
{{ range $after_commands }}
|
||||
- {{ . }}
|
||||
{{ end }}
|
||||
|
Loading…
Reference in New Issue
Block a user