From 5db125bbc589536575837893e9d79ac5813e99a2 Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Mon, 15 Sep 2025 08:45:55 -0600 Subject: [PATCH 1/3] Add CI --- .github/workflows/ci.yaml | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..dfbcc04 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,41 @@ +name: CI + +on: [push, pull_request] +jobs: + test_musl_gcc: + name: "Test with with GCC/musl/libstdc++/BFD on Alpine Linux" + runs-on: ubuntu-latest + container: alpine:edge + steps: + - run: apk --no-cache add git gcc g++ binutils pkgconf meson ninja cmake musl-dev wayland-dev wayland-protocols libinput-dev libevdev-dev libxkbcommon-dev pixman-dev glm-dev libdrm-dev mesa-dev cairo-dev pango-dev eudev-dev libxml2-dev libseat-dev libdisplay-info-dev hwdata-dev + - name: Wayfire + uses: actions/checkout@v2 + with: + repository: WayfireWM/wayfire + path: wayfire + - run: cd wayfire && git submodule submodule update --init --recursive && meson build --prefix=/usr && ninja -v -Cbuild && ninja -v -Cbuild install && cd .. + - name: Pixdecor + uses: actions/checkout@v2 + with: + repository: soreau/pixdecor + path: pixdecor + - run: cd pixdecor && meson build --prefix=/usr && ninja -v -C build && ninja -v -C build install && cd .. + test_code_style: + name: "Check code style with uncrustify" + runs-on: ubuntu-latest + steps: + - run: sudo apt-get update + - run: sudo apt-get install -y git cmake gcc make + - name: Build Uncrustify + uses: actions/checkout@v2 + with: + repository: ammen99/uncrustify + path: uncrustify + - run: cd uncrustify && mkdir build && cd build && cmake .. && make && cd ../.. + - name: Run Uncrustify Check + uses: actions/checkout@v2 + with: + path: pixdecor + - run: cd pixdecor && wget https://raw.githubusercontent.com/WayfireWM/wayfire/master/uncrustify.ini + - run: cd pixdecor && git ls-files | grep "hpp$\|cpp$" | xargs ../uncrustify/build/uncrustify -c uncrustify.ini --no-backup --replace + - run: cd pixdecor && git diff --exit-code From 296571f219d46c00f215c21f663fb3e07927b27b Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Mon, 15 Sep 2025 08:47:42 -0600 Subject: [PATCH 2/3] Fix typo --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dfbcc04..d481e14 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: with: repository: WayfireWM/wayfire path: wayfire - - run: cd wayfire && git submodule submodule update --init --recursive && meson build --prefix=/usr && ninja -v -Cbuild && ninja -v -Cbuild install && cd .. + - run: cd wayfire && git submodule update --init --recursive && meson build --prefix=/usr && ninja -v -Cbuild && ninja -v -Cbuild install && cd .. - name: Pixdecor uses: actions/checkout@v2 with: From ef6a9d5956ed6dcac8148018f17b4e7a7726bf65 Mon Sep 17 00:00:00 2001 From: Scott Moreau Date: Mon, 15 Sep 2025 08:51:03 -0600 Subject: [PATCH 3/3] Fix meson warning --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d481e14..c081259 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,13 +13,13 @@ jobs: with: repository: WayfireWM/wayfire path: wayfire - - run: cd wayfire && git submodule update --init --recursive && meson build --prefix=/usr && ninja -v -Cbuild && ninja -v -Cbuild install && cd .. + - run: cd wayfire && git submodule update --init --recursive && meson setup build --prefix=/usr && ninja -v -Cbuild && ninja -v -Cbuild install && cd .. - name: Pixdecor uses: actions/checkout@v2 with: repository: soreau/pixdecor path: pixdecor - - run: cd pixdecor && meson build --prefix=/usr && ninja -v -C build && ninja -v -C build install && cd .. + - run: cd pixdecor && meson setup build --prefix=/usr && ninja -v -C build && ninja -v -C build install && cd .. test_code_style: name: "Check code style with uncrustify" runs-on: ubuntu-latest