Compare commits
2 Commits
e5df51249b
...
d4d8fd46da
Author | SHA1 | Date | |
---|---|---|---|
|
d4d8fd46da | ||
|
0d681c5131 |
@ -3,16 +3,29 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
steps:
|
steps:
|
||||||
{{ $prepare_commands := .input.prepare_commands }}
|
{{ $prepare_commands := .input.prepare_commands }}
|
||||||
|
{{ $before_commands := .input.before_commands }}
|
||||||
|
{{ $after_commands := .input.after_commands }}
|
||||||
{{ $default_build_types := .input.default_build_types }}
|
{{ $default_build_types := .input.default_build_types }}
|
||||||
|
|
||||||
{{ range .input.builds }}
|
{{ range .input.builds }}
|
||||||
{{ $image_name := .image_name }}
|
{{ $image_name := .image_name }}
|
||||||
- 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 */}}
|
||||||
{{ range $prepare_commands }}
|
{{ range $prepare_commands }}
|
||||||
- {{ . }}
|
- {{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
{{/* >>> expand before commands */}}
|
||||||
|
{{ range $before_commands }}
|
||||||
|
- {{ . }}
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
|
{{/* >>> 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 }}
|
||||||
@ -21,6 +34,11 @@ steps:
|
|||||||
- cmake . -Bbuild-{{$image_name}}-{{.}} -DCMAKE_BUILD_TYPE={{.}}
|
- cmake . -Bbuild-{{$image_name}}-{{.}} -DCMAKE_BUILD_TYPE={{.}}
|
||||||
- cmake --build build-{{$image_name}}-{{.}} --config {{.}} -- -j`nproc`
|
- cmake --build build-{{$image_name}}-{{.}} --config {{.}} -- -j`nproc`
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
{{/* >>> expand after commands */}}
|
||||||
|
{{ range $after_commands }}
|
||||||
|
- {{ . }}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
- name: list all build dir
|
- name: list all build dir
|
||||||
|
Loading…
Reference in New Issue
Block a user