From 919914d4ba36481dac53682e23ab76be0bf34cae Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Thu, 16 Nov 2023 18:49:01 +0800 Subject: [PATCH] test template --- .drone.yml | 6 +++--- drone/build.yaml | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 drone/build.yaml diff --git a/.drone.yml b/.drone.yml index fa6fb89..e95c4b9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,10 +1,10 @@ kind: pipeline -type: build.yaml +type: drone/build.yaml data: image_name: x64 build: - - arch: x64 + - arch: x64-Debug type: Debug - - arch: x64 + - arch: x64-Release type: Release diff --git a/drone/build.yaml b/drone/build.yaml new file mode 100644 index 0000000..ca3d7be --- /dev/null +++ b/drone/build.yaml @@ -0,0 +1,11 @@ +kind: pipeline +type: docker +name: default +steps: + - name: build {{ .input.image_name }} + image: dockcross/{{ .input.image_name }} + commands: + {{ range .input.build }} + - cmake . -Bbuild-{{.arch}} -DCMAKE_BUILD_TYPE={{.type}} + - cmake --build build-{.arch} --config={{.type}} -- -j`nproc` + {{ end }} \ No newline at end of file