summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMihai Fufezan <mihai@fufexan.net>2025-11-16 21:05:48 +0200
committerMihai Fufezan <mihai@fufexan.net>2025-11-17 08:54:47 +0200
commit484d87d4698654888bc392d9bbca784ff8312579 (patch)
tree2a376b32929a3474754eeae168ecf57d3251e03b /.github/workflows
parentcefa63c2af71045d14b65234ae0577533e447aeb (diff)
CI: drop meson build, simplify c-f check
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yaml39
-rw-r--r--.github/workflows/clang-format.yml36
2 files changed, 13 insertions, 62 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index d9c0d1a6..2857c77a 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -41,27 +41,6 @@ jobs:
name: Build archive
path: Hyprland.tar.xz
- meson:
- if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
- name: "Build Hyprland with Meson (Arch)"
- runs-on: ubuntu-latest
- container:
- image: archlinux
- steps:
- - name: Checkout repository actions
- uses: actions/checkout@v4
- with:
- sparse-checkout: .github/actions
-
- - name: Setup base
- uses: ./.github/actions/setup_base
-
- - name: Configure
- run: meson setup build -Ddefault_library=static
-
- - name: Compile
- run: ninja -C build
-
no-pch:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
name: "Build Hyprland without precompiled headers (Arch)"
@@ -106,21 +85,13 @@ jobs:
clang-format:
permissions: read-all
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
- name: "Code Style (Arch)"
+ name: "Code Style"
runs-on: ubuntu-latest
- container:
- image: archlinux
steps:
- - name: Checkout repository actions
+ - name: Checkout repository
uses: actions/checkout@v4
- with:
- sparse-checkout: .github/actions
-
- - name: Setup base
- uses: ./.github/actions/setup_base
-
- - name: Configure
- run: meson setup build -Ddefault_library=static
- name: clang-format check
- run: ninja -C build clang-format-check
+ uses: jidicula/clang-format-action@v4.16.0
+ with:
+ exclude-regex: ^subprojects$
diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml
index e935a605..505829e3 100644
--- a/.github/workflows/clang-format.yml
+++ b/.github/workflows/clang-format.yml
@@ -4,43 +4,23 @@ jobs:
clang-format:
permissions: write-all
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
- name: "Code Style (Arch)"
+ name: "Code Style"
runs-on: ubuntu-latest
- container:
- image: archlinux
steps:
- - name: Checkout repository actions
+ - name: Checkout repository
uses: actions/checkout@v4
- with:
- sparse-checkout: .github/actions
-
- - name: Setup base
- uses: ./.github/actions/setup_base
-
- - name: Configure
- run: meson setup build -Ddefault_library=static
- name: clang-format check
- run: ninja -C build clang-format-check
-
- - name: clang-format apply
- if: ${{ failure() && github.event_name == 'pull_request' }}
- run: ninja -C build clang-format
+ uses: jidicula/clang-format-action@v4.16.0
+ with:
+ exclude-regex: ^subprojects$
- - name: Create patch
+ - name: Create comment
if: ${{ failure() && github.event_name == 'pull_request' }}
run: |
- echo 'Please fix the formatting issues by running [`clang-format`](https://wiki.hyprland.org/Contributing-and-Debugging/PR-Guidelines/#code-style), or directly apply this patch:' > clang-format.patch
- echo '<details>' >> clang-format.patch
- echo '<summary>clang-format.patch</summary>' >> clang-format.patch
- echo >> clang-format.patch
- echo '```diff' >> clang-format.patch
- git diff >> clang-format.patch
- echo '```' >> clang-format.patch
- echo >> clang-format.patch
- echo '</details>' >> clang-format.patch
+ echo 'Please fix the formatting issues by running [`clang-format`](https://wiki.hyprland.org/Contributing-and-Debugging/PR-Guidelines/#code-style).' > clang-format.patch
- - name: Comment patch
+ - name: Post comment
if: ${{ failure() && github.event_name == 'pull_request' }}
uses: mshick/add-pr-comment@v2
with: