From 6f32d5f7fdcba1c9da5e214c9328fcc1a2b17e7a Mon Sep 17 00:00:00 2001 From: Charlotte Meyer 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