test template
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
tqcq 2023-11-16 18:49:01 +08:00
parent df2cf65577
commit 919914d4ba
2 changed files with 14 additions and 3 deletions

View File

@ -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

11
drone/build.yaml Normal file
View File

@ -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 }}