feature update
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
tqcq 2023-11-16 19:39:19 +08:00
parent 95a7ee1d9a
commit 02710657a9
2 changed files with 8 additions and 26 deletions

View File

@ -3,34 +3,11 @@ load: build.yaml
data:
builds:
- image_name: linux-x64
build_types:
- Debug
- Release
- image_name: linux-x86
build_types:
- Debug
- Release
- image_name: linux-mipsel-lts
build_types:
- Debug
- Release
- image_name: linux-mips-lts
build_types:
- Debug
- Release
- image_name: linux-armv7-lts
build_types:
- Debug
- Release
- image_name: linux-armv6-lts
build_types:
- Debug
- Release
- image_name: linux-armv5-lts
build_types:
- Debug
- Release
- image_name: linux-armv5
- image_name: linux-armv5-musl
- image_name: linux-arm64-lts
build_types:
- Debug
- Release

View File

@ -7,7 +7,12 @@ steps:
- name: build {{ .image_name }}
image: dockcross/{{ .image_name }}
commands:
{{ range .build_types }}
{{ if .build_types }}
{{ $build_types := .build_types }}
{{ else }}
{{ $build_types := list Debug Release }}
{{ end }}
{{ range $build_types }}
- cmake . -Bbuild-{{$image_name}}-{{.}} -DCMAKE_BUILD_TYPE={{.}}
- cmake --build build-{{$image_name}}-{{.}} --config={{.}} -- -j`nproc`
{{end}}