From 12fd713fd4aea703934052595115964aa9c8d311 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Mon, 1 Jun 2026 21:34:46 +0200 Subject: [PATCH 1/9] setup Cpp workflow --- .gitea/workflows/build-cpp.yml | 37 ++++++++++++++++++++++++++++++++++ .gitea/workflows/lint-cpp.yml | 27 +++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 .gitea/workflows/build-cpp.yml create mode 100644 .gitea/workflows/lint-cpp.yml diff --git a/.gitea/workflows/build-cpp.yml b/.gitea/workflows/build-cpp.yml new file mode 100644 index 0000000..ed7a3eb --- /dev/null +++ b/.gitea/workflows/build-cpp.yml @@ -0,0 +1,37 @@ +name: Build (C++) + +on: + pull_request: + +jobs: + build-zshell: + runs-on: alpine + container: node:26-alpine + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install tools + run: | + apk add --no-cache \ + build-base \ + cmake \ + ninja \ + pkgconf \ + qt6-qtbase-dev \ + qt6-qtdeclarative-dev \ + qt6-qtshadertools-dev \ + qt6-qttools-dev \ + pipewire-dev \ + libqalculate-dev \ + glib-dev \ + aubio-dev \ + cava-dev \ + git + + - name: Configure + run: cmake -S . -B build -G Ninja + + - name: Build ZShell + run: cmake --build build --target ZShell diff --git a/.gitea/workflows/lint-cpp.yml b/.gitea/workflows/lint-cpp.yml new file mode 100644 index 0000000..f0602e1 --- /dev/null +++ b/.gitea/workflows/lint-cpp.yml @@ -0,0 +1,27 @@ +name: Lint & Format (C++) + +on: + pull_request: + +jobs: + lint-format: + runs-on: alpine + container: node:26-alpine + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install tools + run: | + apk add --no-cache \ + clang-extra-tools \ + git + + - name: Clang Format + run: | + if find . -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) -print -quit | grep -q .; then + find . -type f \( -name "*.cpp" -o -name "*.hpp" -o -name "*.h" \) -print0 | xargs -0 clang-format --dry-run --Werror + else + echo "No C++ files found" + fi -- 2.47.3 From c721d5c93cb7d71c69c2e0dc24dc9a8304ecef51 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Mon, 1 Jun 2026 21:37:40 +0200 Subject: [PATCH 2/9] cava dependency --- .gitea/workflows/build-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build-cpp.yml b/.gitea/workflows/build-cpp.yml index ed7a3eb..dae3dea 100644 --- a/.gitea/workflows/build-cpp.yml +++ b/.gitea/workflows/build-cpp.yml @@ -27,7 +27,7 @@ jobs: libqalculate-dev \ glib-dev \ aubio-dev \ - cava-dev \ + cava \ git - name: Configure -- 2.47.3 From 78fc3c08538b2a815ee4b62b79c20603cd162bf9 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Mon, 1 Jun 2026 21:39:02 +0200 Subject: [PATCH 3/9] cava dependency from testing repo --- .gitea/workflows/build-cpp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build-cpp.yml b/.gitea/workflows/build-cpp.yml index dae3dea..89de6b9 100644 --- a/.gitea/workflows/build-cpp.yml +++ b/.gitea/workflows/build-cpp.yml @@ -27,8 +27,8 @@ jobs: libqalculate-dev \ glib-dev \ aubio-dev \ - cava \ git + apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing cava - name: Configure run: cmake -S . -B build -G Ninja -- 2.47.3 From 5551ec1b54b6759981677678849b77043b2bf091 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Mon, 1 Jun 2026 21:48:09 +0200 Subject: [PATCH 4/9] testing repo added globally for build workflow --- .gitea/workflows/build-cpp.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-cpp.yml b/.gitea/workflows/build-cpp.yml index 89de6b9..1141cfa 100644 --- a/.gitea/workflows/build-cpp.yml +++ b/.gitea/workflows/build-cpp.yml @@ -14,6 +14,8 @@ jobs: - name: Install tools run: | + echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories + apk update apk add --no-cache \ build-base \ cmake \ @@ -28,7 +30,7 @@ jobs: glib-dev \ aubio-dev \ git - apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing cava + apk add --no-cache cava - name: Configure run: cmake -S . -B build -G Ninja -- 2.47.3 From 0ef1e94f8296e1d001d94405125f4ad871b3b276 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Mon, 1 Jun 2026 21:59:03 +0200 Subject: [PATCH 5/9] alpine -> arch for cpp build workflow --- .gitea/workflows/build-cpp.yml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/build-cpp.yml b/.gitea/workflows/build-cpp.yml index 1141cfa..b470eff 100644 --- a/.gitea/workflows/build-cpp.yml +++ b/.gitea/workflows/build-cpp.yml @@ -6,7 +6,7 @@ on: jobs: build-zshell: runs-on: alpine - container: node:26-alpine + container: archlinux:latest steps: - name: Checkout @@ -14,23 +14,22 @@ jobs: - name: Install tools run: | - echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories - apk update - apk add --no-cache \ - build-base \ + pacman -Syu --noconfirm + pacman -S --noconfirm \ + base-devel \ cmake \ ninja \ pkgconf \ - qt6-qtbase-dev \ - qt6-qtdeclarative-dev \ - qt6-qtshadertools-dev \ - qt6-qttools-dev \ - pipewire-dev \ - libqalculate-dev \ - glib-dev \ - aubio-dev \ + qt6-base \ + qt6-declarative \ + qt6-shadertools \ + qt6-tools \ + pipewire \ + libqalculate \ + glib2 \ + aubio \ + cava \ git - apk add --no-cache cava - name: Configure run: cmake -S . -B build -G Ninja -- 2.47.3 From 5dfffc5ac86b59aa283c3a309ae4d771ef02d258 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Mon, 1 Jun 2026 22:01:58 +0200 Subject: [PATCH 6/9] fix issue node --- .gitea/workflows/build-cpp.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build-cpp.yml b/.gitea/workflows/build-cpp.yml index b470eff..292a7be 100644 --- a/.gitea/workflows/build-cpp.yml +++ b/.gitea/workflows/build-cpp.yml @@ -9,13 +9,14 @@ jobs: container: archlinux:latest steps: + - name: Install node & git + run: pacman -Syu --noconfirm nodejs git + - name: Checkout uses: actions/checkout@v4 - - name: Install tools - run: | - pacman -Syu --noconfirm - pacman -S --noconfirm \ + - name: Install build tools + run: pacman -S --noconfirm \ base-devel \ cmake \ ninja \ @@ -28,8 +29,7 @@ jobs: libqalculate \ glib2 \ aubio \ - cava \ - git + cava - name: Configure run: cmake -S . -B build -G Ninja -- 2.47.3 From e3b139ad3de58871576f4d6a91fc5641cc600a6c Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Mon, 1 Jun 2026 22:03:04 +0200 Subject: [PATCH 7/9] pacman lacked keyring --- .gitea/workflows/build-cpp.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-cpp.yml b/.gitea/workflows/build-cpp.yml index 292a7be..8f7cc32 100644 --- a/.gitea/workflows/build-cpp.yml +++ b/.gitea/workflows/build-cpp.yml @@ -10,7 +10,10 @@ jobs: steps: - name: Install node & git - run: pacman -Syu --noconfirm nodejs git + run: | + pacman-key --init + pacman-key --populate archlinux + pacman -Syu --noconfirm nodejs git - name: Checkout uses: actions/checkout@v4 -- 2.47.3 From 6c09c0412af5099ef6a9910d8157ac4c4612e271 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Mon, 1 Jun 2026 22:07:47 +0200 Subject: [PATCH 8/9] removal node, fully unnecessary --- .gitea/workflows/build-cpp.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build-cpp.yml b/.gitea/workflows/build-cpp.yml index 8f7cc32..267d117 100644 --- a/.gitea/workflows/build-cpp.yml +++ b/.gitea/workflows/build-cpp.yml @@ -9,14 +9,11 @@ jobs: container: archlinux:latest steps: - - name: Install node & git + - name: Bootstrap pacman run: | pacman-key --init pacman-key --populate archlinux - pacman -Syu --noconfirm nodejs git - - - name: Checkout - uses: actions/checkout@v4 + pacman -Syu --noconfirm - name: Install build tools run: pacman -S --noconfirm \ @@ -24,16 +21,26 @@ jobs: cmake \ ninja \ pkgconf \ + sudo \ + git \ qt6-base \ qt6-declarative \ qt6-shadertools \ - qt6-tools \ pipewire \ libqalculate \ glib2 \ aubio \ cava + - name: Install libcava (AUR) + run: | + useradd -m builduser + passwd -d builduser + echo 'builduser ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers + sudo -u builduser git clone https://aur.archlinux.org/libcava.git /tmp/libcava + cd /tmp/libcava + sudo -u builduser makepkg -si --noconfirm + - name: Configure run: cmake -S . -B build -G Ninja -- 2.47.3 From 1fbe7c328bb3d506fd881f657dcc65cd749d0616 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Mon, 1 Jun 2026 22:09:23 +0200 Subject: [PATCH 9/9] update command in later step --- .gitea/workflows/build-cpp.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build-cpp.yml b/.gitea/workflows/build-cpp.yml index 267d117..ea8aa9a 100644 --- a/.gitea/workflows/build-cpp.yml +++ b/.gitea/workflows/build-cpp.yml @@ -9,14 +9,11 @@ jobs: container: archlinux:latest steps: - - name: Bootstrap pacman + - name: Install all packages run: | pacman-key --init pacman-key --populate archlinux - pacman -Syu --noconfirm - - - name: Install build tools - run: pacman -S --noconfirm \ + pacman -Syu --noconfirm \ base-devel \ cmake \ ninja \ @@ -38,8 +35,7 @@ jobs: passwd -d builduser echo 'builduser ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers sudo -u builduser git clone https://aur.archlinux.org/libcava.git /tmp/libcava - cd /tmp/libcava - sudo -u builduser makepkg -si --noconfirm + sudo -u builduser makepkg -si --noconfirm -p /tmp/libcava/PKGBUILD - name: Configure run: cmake -S . -B build -G Ninja -- 2.47.3