ulib/drone/build.yaml
tqcq 95a7ee1d9a
Some checks reported errors
continuous-integration/drone/push Build encountered an error
feature add other arch
2023-11-16 19:25:54 +08:00

19 lines
480 B
YAML

kind: pipeline
type: docker
name: default
steps:
{{ range .input.builds }}
{{ $image_name := .image_name }}
- name: build {{ .image_name }}
image: dockcross/{{ .image_name }}
commands:
{{ 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-*