fix delete list method
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
02710657a9
commit
aa68f8bbd4
@ -1,6 +1,9 @@
|
||||
kind: template
|
||||
load: build.yaml
|
||||
data:
|
||||
default_build_types:
|
||||
- Debug
|
||||
- Release
|
||||
builds:
|
||||
- image_name: linux-x64
|
||||
- image_name: linux-x86
|
||||
|
@ -2,6 +2,7 @@ kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
steps:
|
||||
{{ $default_build_types := .input.default_build_types }}
|
||||
{{ range .input.builds }}
|
||||
{{ $image_name := .image_name }}
|
||||
- name: build {{ .image_name }}
|
||||
@ -10,7 +11,7 @@ steps:
|
||||
{{ if .build_types }}
|
||||
{{ $build_types := .build_types }}
|
||||
{{ else }}
|
||||
{{ $build_types := list Debug Release }}
|
||||
{{ $build_types := $default_build_types }}
|
||||
{{ end }}
|
||||
{{ range $build_types }}
|
||||
- cmake . -Bbuild-{{$image_name}}-{{.}} -DCMAKE_BUILD_TYPE={{.}}
|
||||
@ -22,3 +23,7 @@ steps:
|
||||
image: alpine
|
||||
commands:
|
||||
- ls -l build-*
|
||||
depends_on:
|
||||
{{ range .input.builds }}
|
||||
- build {{ .image_name }}
|
||||
{{ end }}
|
Loading…
Reference in New Issue
Block a user