mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-02 06:46:29 -04:00
Remove code formatting checks from both workflows
Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
This commit is contained in:
parent
8de9685457
commit
b1438b7e71
3 changed files with 15 additions and 55 deletions
20
.github/workflows/build-arch.yml
vendored
20
.github/workflows/build-arch.yml
vendored
|
|
@ -39,24 +39,12 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Check C/C++ code formatting
|
||||
run: |
|
||||
# Install clang-format
|
||||
pacman -Syu --noconfirm
|
||||
pacman -S --noconfirm clang
|
||||
|
||||
# Check if code is properly formatted
|
||||
echo "Checking code formatting with clang-format..."
|
||||
clang-format --dry-run --Werror src/*/*.h src/*/*.c src/mango.c mmsg/mmsg.c mmsg/arg.h mmsg/dynarr.h || {
|
||||
echo "❌ Code formatting check failed!"
|
||||
echo "Run './format.sh' to fix formatting issues."
|
||||
exit 1
|
||||
}
|
||||
echo "✅ Code formatting check passed!"
|
||||
|
||||
- name: Update system and install dependencies
|
||||
run: |
|
||||
# Install build tools and all dependencies (system already updated in format check)
|
||||
# Update package database
|
||||
pacman -Syu --noconfirm
|
||||
|
||||
# Install build tools and all dependencies
|
||||
pacman -S --noconfirm \
|
||||
base-devel \
|
||||
git \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue