From f20a3e71277e7a59def68ff72b58149aec3548b2 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Thu, 16 Nov 2023 19:43:57 +0800 Subject: [PATCH] add build_types --- drone/build.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drone/build.yaml b/drone/build.yaml index 2535982..d47101a 100644 --- a/drone/build.yaml +++ b/drone/build.yaml @@ -8,10 +8,9 @@ steps: - name: build {{ .image_name }} image: dockcross/{{ .image_name }} commands: + {{ $build_types := $default_build_types }} {{ if .build_types }} {{ $build_types := .build_types }} - {{ else }} - {{ $build_types := $default_build_types }} {{ end }} {{ range $build_types }} - cmake . -Bbuild-{{$image_name}}-{{.}} -DCMAKE_BUILD_TYPE={{.}}