game/.drone.yml

32 lines
525 B
YAML

---
kind: pipeline
type: docker
name: mario-build
platform:
os: linux
arch: arm64
steps:
- name: build
image: cppbuilder:v0.4
commands:
- cd mario
- mkdir build
- cd build
- cmake ..
- make
---
kind: pipeline
type: docker
name: mario-formatting
platform:
os: linux
arch: arm64
steps:
- name: formatting-check
image: cppbuilder:v0.4
commands:
- cd mario
- find . -path "./build" -prune -or \( -iname "*.cpp" -or -iname "*.hpp" \) | xargs -P0 -I{} clang-format -style=file --dry-run -Werror {}