Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc chores #22

Merged
merged 33 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a1167f7
fix: make(-Wall) warnings
javalsai Aug 27, 2024
50c2513
feat: add runit support
javalsai Sep 3, 2024
1bab69f
Merge remote-tracking branch 'origin/fix-warnings' into misc-chores
javalsai Sep 3, 2024
9de4551
feat: add manpages and improve service docs
javalsai Sep 4, 2024
b4fbe68
fix: Makefile paths on Nix
grialion Sep 4, 2024
ae4e4df
feat: add openrc support
javalsai Sep 4, 2024
2fb0e0e
oops: add openrc install detection
javalsai Sep 4, 2024
6d3c3cb
feat: add s6 suport
javalsai Sep 4, 2024
f9a3c67
fix: sysd service file (moved to tty7)
javalsai Sep 4, 2024
aba3b49
chore: proper default theme strings 😔
javalsai Sep 4, 2024
64e101e
fix: compiler warnings
grialion Sep 4, 2024
1a8aa1a
fix: ui bugs introduced in last commit
javalsai Sep 4, 2024
462d1fd
chore: remove unnecessary pam header uses
javalsai Sep 5, 2024
730e6db
fix: grammar (codespell)
javalsai Sep 5, 2024
7ca864f
feat: add LIDM_CONF config path override
javalsai Sep 5, 2024
b18ed23
docs: add separate install guide
javalsai Sep 5, 2024
72858a9
format: markdown files
javalsai Sep 5, 2024
b34528d
format: add clang-format config
javalsai Sep 5, 2024
dbbab78
format: let clang-format run ._.
javalsai Sep 5, 2024
2284ab0
chore: remove config inconsistencies
javalsai Sep 5, 2024
286cd01
themes: add kanagawa themes and organize themes
javalsai Sep 5, 2024
d3138aa
docs: fix typos
javalsai Sep 6, 2024
aa70fc8
fix: shellcheck warnings
javalsai Sep 6, 2024
a2b2434
ci: lots of ci features
javalsai Sep 6, 2024
4bb8563
ci(feat): add clang-format checks
javalsai Sep 6, 2024
69ee14f
ci(feat): add aarch64 build
javalsai Sep 6, 2024
c9d52d2
ci(feat): add armv7 build
javalsai Sep 6, 2024
f1f9d6b
ci(feat): add riscv64 build
javalsai Sep 6, 2024
e746d63
feat: update pkgbuilds
javalsai Sep 6, 2024
a223b47
docs: use bigger theme images (and gif)
javalsai Sep 6, 2024
4415cca
docs: upate index
javalsai Sep 7, 2024
ed80b4b
fix(oops): wayland = wayland and xorg = xorg
javalsai Sep 7, 2024
2ba4904
chore: better error handling print on chdir
javalsai Sep 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .SRCINFO

This file was deleted.

2 changes: 2 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BasedOnStyle: LLVM
IndentWidth: 2
2 changes: 2 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[codespell]
skip = ./assets/pkg/aur/*/src
54 changes: 0 additions & 54 deletions .github/actions/build/action.yml

This file was deleted.

65 changes: 0 additions & 65 deletions .github/workflows/build-check.yml

This file was deleted.

259 changes: 259 additions & 0 deletions .github/workflows/check-and-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,259 @@
name: Check and Build

on:
workflow_call:
inputs:
set-statuses:
required: false
default: true
type: boolean

jobs:
spellcheck:
name: Check Grammar
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: "codespell"
version: 1.0
- run: codespell

shellcheck:
name: Shell Check
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: "shellcheck"
version: 1.0
- run: find . -type f -name '*.sh' -not -path './assets/pkg/aur/*/src/*' | xargs shellcheck

clangcheck:
name: Chang Check
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: "clang-format clang-tidy"
version: 1.0
- run: clang-format -ni src/*.c include/*.h
# TODO: include when the errors/warnings are bearable
#- run: clang-tidy src/*.c include/*.h

build-linux-amd64:
name: Build for amd64
runs-on: ubuntu-24.04
permissions: write-all
needs: [spellcheck, shellcheck, clangcheck]

steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: "libpam0g-dev"
version: 1.0
- id: build
run: |
make -j$(nproc) 2> /tmp/stderr
cat /tmp/stderr >&2

HSIZE="$(stat --printf="%s" lidm | numfmt --to=iec-i)B"
WARNS="$(cat /tmp/stderr | grep '^[^ ]*\.[ch]:' | wc -l)"
mv lidm lidm-amd64

echo "DESCR='$HSIZE, $WARNS warnings'" >> "$GITHUB_OUTPUT"

- uses: myrotvorets/set-commit-status-action@master
if: inputs.set-statuses
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
description: ${{ steps.build.outputs.DESCR }}
context: Build for amd64

- uses: actions/upload-artifact@v4
with:
name: build-amd64
path: lidm-amd64
retention-days: 1

build-linux-i386:
name: Build for i386
runs-on: ubuntu-24.04
permissions: write-all
needs: [spellcheck, shellcheck, clangcheck]

steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: "libpam0g-dev gcc-multilib"
version: 1.0
- run: |
sudo dpkg --add-architecture i386
sudo apt-get update -y
sudo apt-get install -y libpam0g-dev:i386

- id: build
run: |
make -j$(nproc) CFLAGS="-O3 -Wall -m32" 2> /tmp/stderr
cat /tmp/stderr >&2

HSIZE="$(stat --printf="%s" lidm | numfmt --to=iec-i)B"
WARNS="$(cat /tmp/stderr | grep '^[^ ]*\.[ch]:' | wc -l)"
mv lidm lidm-i386

echo "DESCR='$HSIZE, $WARNS warnings'" >> "$GITHUB_OUTPUT"

- uses: myrotvorets/set-commit-status-action@master
if: inputs.set-statuses
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
description: ${{ steps.build.outputs.DESCR }}
context: Build for i386

- uses: actions/upload-artifact@v4
with:
name: build-i386
path: lidm-i386
retention-days: 1

build-linux-aarch64:
name: Build for aarch64
runs-on: ubuntu-24.04
permissions: write-all
needs: [spellcheck, shellcheck, clangcheck]
steps:
- uses: actions/checkout@v4

- uses: uraimo/run-on-arch-action@v2
with:
arch: aarch64
distro: ubuntu22.04
githubToken: ${{ github.token }}
install: |
apt-get update && \
apt-get install -y make gcc libpam0g-dev
run: |
make -j$(nproc) 2> /tmp/stderr

cat /tmp/stderr >&2
mv lidm lidm-aarch64

- if: inputs.set-statuses
id: status
run: |
HSIZE="$(stat --printf="%s" lidm-aarch64 | numfmt --to=iec-i)B"
WARNS="$(cat /tmp/stderr | grep '^[^ ]*\.[ch]:' | wc -l)"

echo "DESCR='$HSIZE, $WARNS warnings'" >> "$GITHUB_OUTPUT"

- uses: myrotvorets/set-commit-status-action@master
if: inputs.set-statuses
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
description: ${{ steps.status.outputs.DESCR }}
context: Build for aarch64

- uses: actions/upload-artifact@v4
with:
name: build-aarch64
path: lidm-aarch64
retention-days: 1

build-linux-armv7:
name: Build for armv7
runs-on: ubuntu-24.04
permissions: write-all
needs: [spellcheck, shellcheck, clangcheck]
steps:
- uses: actions/checkout@v4

- uses: uraimo/run-on-arch-action@v2
with:
arch: armv7
distro: ubuntu22.04
githubToken: ${{ github.token }}
install: |
apt-get update && \
apt-get install -y make gcc libpam0g-dev
run: |
make -j$(nproc) 2> /tmp/stderr

cat /tmp/stderr >&2
mv lidm lidm-armv7

- if: inputs.set-statuses
id: status
run: |
HSIZE="$(stat --printf="%s" lidm-armv7 | numfmt --to=iec-i)B"
WARNS="$(cat /tmp/stderr | grep '^[^ ]*\.[ch]:' | wc -l)"

echo "DESCR='$HSIZE, $WARNS warnings'" >> "$GITHUB_OUTPUT"

- uses: myrotvorets/set-commit-status-action@master
if: inputs.set-statuses
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
description: ${{ steps.status.outputs.DESCR }}
context: Build for armv7

- uses: actions/upload-artifact@v4
with:
name: build-armv7
path: lidm-armv7
retention-days: 1

build-linux-riscv64:
name: Build for riscv64
runs-on: ubuntu-24.04
permissions: write-all
needs: [spellcheck, shellcheck, clangcheck]
steps:
- uses: actions/checkout@v4

- uses: uraimo/run-on-arch-action@v2
with:
arch: riscv64
distro: ubuntu22.04
githubToken: ${{ github.token }}
install: |
apt-get update && \
apt-get install -y make gcc libpam0g-dev
run: |
make -j$(nproc) 2> /tmp/stderr

cat /tmp/stderr >&2
mv lidm lidm-riscv64

- if: inputs.set-statuses
id: status
run: |
HSIZE="$(stat --printf="%s" lidm-riscv64 | numfmt --to=iec-i)B"
WARNS="$(cat /tmp/stderr | grep '^[^ ]*\.[ch]:' | wc -l)"

echo "DESCR='$HSIZE, $WARNS warnings'" >> "$GITHUB_OUTPUT"

- uses: myrotvorets/set-commit-status-action@master
if: inputs.set-statuses
with:
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
description: ${{ steps.status.outputs.DESCR }}
context: Build for riscv64

- uses: actions/upload-artifact@v4
with:
name: build-riscv64
path: lidm-riscv64
retention-days: 1
Loading