ulib/drone/build.yaml
tqcq d18bb91413
Some checks reported errors
continuous-integration/drone/push Build encountered an error
fix cmake --config=xxx to --config xxx
2023-11-16 19:58:10 +08:00

28 lines
759 B
YAML

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 }}
image: dockcross/{{ .image_name }}
commands:
{{ $build_types := $default_build_types }}
{{ if .build_types }}
{{ $build_types := .build_types }}
{{ end }}
{{ range $build_types }}
- cmake . -Bbuild-{{$image_name}}-{{.}} -DCMAKE_BUILD_TYPE={{.}}
- cmake --build build-{{$image_name}}-{{.}} --config {{.}} -- -j`nproc`
{{end}}
{{ end }}
- name: list all build dir
image: alpine
commands:
- ls -l build-*
depends_on:
{{ range .input.builds }}
- build {{ .image_name }}
{{ end }}