diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 00000000..13047c2d --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,87 @@ +clone: + git: + image: plugins/git + tags: true + +pipeline: + codespell: + image: alpine:latest + commands: + - apk add python3 + - apk add py3-pip + - pip install codespell + - codespell -Ldoas README.md INSTALL.md CHANGELOG.md *.c *.h doc/*.scd + + subprojects: + image: alpine:latest + commands: + - apk add git + - mkdir -p subprojects && cd subprojects + - git clone https://codeberg.org/dnkl/tllist.git + - git clone https://codeberg.org/dnkl/fcft.git + - cd .. + + x64: + group: build + image: alpine:latest + commands: + - apk update + - apk add musl-dev linux-headers meson ninja gcc scdoc ncurses + - apk add libxkbcommon-dev pixman-dev freetype-dev fontconfig-dev harfbuzz-dev utf8proc-dev + - apk add wayland-dev wayland-protocols + - apk add git + - apk add check-dev + - apk add ttf-hack font-noto-emoji + + # Debug + - mkdir -p bld/debug-x64 + - cd bld/debug-x64 + - meson --buildtype=debug -Dgrapheme-clustering=enabled -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true ../.. + - ninja -v -k0 + - ninja -v test + - cd ../.. + + # Release + - mkdir -p bld/release-x64 + - cd bld/release-x64 + - meson --buildtype=release -Dgrapheme-clustering=enabled -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true ../.. + - ninja -v -k0 + - ninja -v test + - cd ../.. + + # no grapheme clustering + - apk del harfbuzz harfbuzz-dev utf8proc utf8proc-dev + - mkdir -p bld/debug + - cd bld/debug + - meson --buildtype=debug -Dgrapheme-clustering=disabled -Dfcft:text-shaping=disabled -Dfcft:test-text-shaping=false ../.. + - ninja -v -k0 + - ninja -v test + - cd ../.. + + x86: + group: build + image: i386/alpine:latest + commands: + - apk update + - apk add musl-dev linux-headers meson ninja gcc scdoc ncurses + - apk add libxkbcommon-dev pixman-dev freetype-dev fontconfig-dev harfbuzz-dev utf8proc-dev + - apk add wayland-dev wayland-protocols + - apk add git + - apk add check-dev + - apk add ttf-hack font-noto-emoji + + # Debug + - mkdir -p bld/debug-x86 + - cd bld/debug-x86 + - meson --buildtype=debug -Dgrapheme-clustering=enabled -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true ../.. + - ninja -v -k0 + - ninja -v test + - cd ../.. + + # Release + - mkdir -p bld/release-x86 + - cd bld/release-x86 + - meson --buildtype=release -Dgrapheme-clustering=enabled -Dfcft:text-shaping=enabled -Dfcft:test-text-shaping=true ../.. + - ninja -v -k0 + - ninja -v test + - cd ../.. diff --git a/README.md b/README.md index d90302f8..a64353d4 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ The fast, lightweight and minimalistic Wayland terminal emulator. +[![CI status](https://ci.codeberg.org/api/badges/dnkl/foot/status.svg)](https://ci.codeberg.org/dnkl/foot) [![Pipeline status](https://gitlab.com/dnkl/foot/badges/master/pipeline.svg)](https://gitlab.com/dnkl/foot/commits/master) [![builds.sr.ht status](https://builds.sr.ht/~dnkl/foot.svg)](https://builds.sr.ht/~dnkl/foot?)