diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 0a15b44..ba9e3ee 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -30,14 +30,22 @@ jobs: clangcheck: name: Clang - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest + container: + image: ubuntu:25.04 steps: - uses: actions/checkout@v4 - - uses: awalsh128/cache-apt-pkgs-action@latest - with: - packages: "clang-format clang-tidy bear libpam0g-dev" - version: 1.0 + - run: apt -y update && apt install -y clang-format clang-tidy make gcc git bear libpam0g-dev + - run: bear -- make - - run: clang-format -ni src/*.c include/*.h - - run: clang-tidy -p . src/*.c include/*.h + - run: clang-format -version && clang-format -dump-config + - run: | + set -euo pipefail + clang-format -ni src/*.c include/*.h -Werror 2>&1 | \ + sed -E 's/^([^ ]+\.[ch]):([0-9]+):([0-9]+): ([a-z]+): (.*)$/::\4 file=\1,line=\2,col=\3::\5/' + - run: clang-tidy -version && clang-tidy -dump-config + - run: | + set -euo pipefail + clang-tidy -p . src/*.c include/*.h -warnings-as-errors=\* 2>&1 1>/dev/null | + sed -E 's/^([^ ]+\.[ch]):([0-9]+):([0-9]+): ([a-z]+): (.*)$/::\4 file=\1,line=\2,col=\3::\5/' diff --git a/README.md b/README.md index 09c35c8..b941ec3 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,18 @@ LiDM is like any [Display Manager](https://en.wikipedia.org/wiki/X_display_manag  -> _shown as in a featured terminal emulator, actual linux console doesn't support as much color and decorations_ +
> _however, all colors and strings are fully customizable_ diff --git a/assets/github_scripts/build.sh b/assets/github_scripts/build.sh index 8536363..f407d8a 100755 --- a/assets/github_scripts/build.sh +++ b/assets/github_scripts/build.sh @@ -13,8 +13,9 @@ make -j"$(nproc)" "$@" 2> /tmp/stderr || ERR=$? BSIZE=$(stat --printf="%s" lidm) HSIZE=$(numfmt --to=iec-i<<<"$BSIZE")B WARNS=$( - { grep -E '^[^ ]+\.[ch]:[0-9]+:[0-9]+: [a-z]+:' /tmp/stderr || :; } \ - | sed -E 's/^([^ ]+\.[ch]):([0-9]+):([0-9]+): ([a-z]+): (.*)$/::\4 file=\1,line=\2,col=\3::\5/' + sed -nE \ + 's/^([^ ]+\.[ch]):([0-9]+):([0-9]+): ([a-z]+): (.*)$/::\4 file=\1,line=\2,col=\3::\5/p' \ + /tmp/stderr ) WARNS_NUM=$({ [[ "$WARNS" == "" ]] && echo 0; } || wc -l <<<"$WARNS") diff --git a/include/log.h b/include/log.h index 226b48b..9fa8079 100644 --- a/include/log.h +++ b/include/log.h @@ -3,10 +3,12 @@ #include++shown as in a featured terminal emulator, actual linux console doesn't support as much color and decorations +
+ +If you want to add fancy color and font support to your TTYs you can wrap lidm in [`kmscon`](https://wiki.archlinux.org/title/KMSCON). (edit appropriate service files). e.g: + +```sh +kmscon -l --vt /dev/tty7 --font-name "Cascadia Code" -- /usr/bin/lidm +``` + +