From 02710657a93f7fcfcc9a83431a598ca9955fdd84 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Thu, 16 Nov 2023 19:39:19 +0800 Subject: [PATCH] feature update --- .drone.yml | 27 ++------------------------- drone/build.yaml | 7 ++++++- 2 files changed, 8 insertions(+), 26 deletions(-) diff --git a/.drone.yml b/.drone.yml index ae45175..8da946c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/drone/build.yaml b/drone/build.yaml index 8feb5f9..7eab27b 100644 --- a/drone/build.yaml +++ b/drone/build.yaml @@ -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}}