From ef3ce0d1c56f87056a44795815a585fb4226d381 Mon Sep 17 00:00:00 2001 From: buffet Date: Fri, 13 Aug 2021 17:59:08 +0000 Subject: [PATCH] Add cirrus CI --- .cirrus.yml | 18 ++++++++++++++++++ .editorconfig | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 .cirrus.yml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 0000000..4c5fdc9 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,18 @@ +task: + container: + image: archlinux:base-devel + + matrix: + - name: Build (clang) + script: + - sudo pacman --noconfirm -Syu + - sudo pacman --noconfirm -S git meson ninja lua51 wlroots wayland-protocols + - meson build -Dlua-pkg=lua51 + - ninja -C build + + - name: Format + script: + - sudo pacman --noconfirm -Syu + - sudo pacman --noconfirm -S clang git + - clang-format -i **/*.{c,h} + - git diff --exit-code diff --git a/.editorconfig b/.editorconfig index 8287d24..51b3955 100644 --- a/.editorconfig +++ b/.editorconfig @@ -11,3 +11,7 @@ tab_width = 4 [meson.build] indent_size = 2 tab_width = 2 + +[*.yml] +indent_size = 2 +tab_width = 2