feature add BUILD_TYPE to env
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
d4d8fd46da
commit
6855ce0f3d
@ -12,33 +12,39 @@ steps:
|
|||||||
- name: build {{ .image_name }}
|
- name: build {{ .image_name }}
|
||||||
image: dockcross/{{ .image_name }}
|
image: dockcross/{{ .image_name }}
|
||||||
commands:
|
commands:
|
||||||
{{/* set build dir to env */}}
|
|
||||||
- export CURRENT_BUILD_DIR=build-{{$image_name}}
|
|
||||||
|
|
||||||
{{/* >>> expand prepare commands */}}
|
{{/* >>> expand prepare commands */}}
|
||||||
{{ range $prepare_commands }}
|
{{ range $prepare_commands }}
|
||||||
- {{ . }}
|
- {{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{/* >>> expand before commands */}}
|
|
||||||
{{ range $before_commands }}
|
|
||||||
- {{ . }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{/* >>> expand commands */}}
|
{{/* >>> expand commands */}}
|
||||||
{{ $build_types := $default_build_types }}
|
{{ $build_types := $default_build_types }}
|
||||||
{{ if .build_types }}
|
{{ if .build_types }}
|
||||||
{{ $build_types := .build_types }}
|
{{ $build_types := .build_types }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ range $build_types }}
|
|
||||||
- cmake . -Bbuild-{{$image_name}}-{{.}} -DCMAKE_BUILD_TYPE={{.}}
|
|
||||||
- cmake --build build-{{$image_name}}-{{.}} --config {{.}} -- -j`nproc`
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{/* >>> expand after commands */}}
|
|
||||||
{{ range $after_commands }}
|
{{ range $build_types }}
|
||||||
|
{{/* set build dir to env */}}
|
||||||
|
- export BUILD_TYPE={{.}}
|
||||||
|
- export CURRENT_BUILD_DIR=build-{{$image_name}}-{{.}}
|
||||||
|
|
||||||
|
{{/* >>> expand before commands */}}
|
||||||
|
{{ range $before_commands }}
|
||||||
- {{ . }}
|
- {{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
- cmake . -B${CURRENT_BUILD_DIR} -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
|
||||||
|
- cmake --build ${CURRENT_BUILD_DIR} --config ${BUILD_TYPE} -- -j`nproc`
|
||||||
|
|
||||||
|
{ { /* >>> expand after commands */ } }
|
||||||
|
{ { range $after_commands } }
|
||||||
|
- { { . } }
|
||||||
|
{ { end } }
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
- name: list all build dir
|
- name: list all build dir
|
||||||
|
Loading…
Reference in New Issue
Block a user