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