Files

67 lines
1.6 KiB
YAML

name: CI
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
jobs:
build:
name: Build and Check
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup MSVC environment
uses: microsoft/setup-msbuild@v2
- name: Setup Visual Studio Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
- name: Build with build.bat
run: build.bat
shell: cmd
- name: Check build output
run: |
if exist build\UxTheme.dll (
echo Build successful: build\UxTheme.dll exists
dir build\UxTheme.dll
) else (
echo ERROR: build\UxTheme.dll not found
exit 1
)
shell: cmd
- name: Upload build artifact
if: success()
uses: actions/upload-artifact@v4
with:
name: UxTheme.dll
path: build/UxTheme.dll
if-no-files-found: error
clang-format:
name: Clang Format Check
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install clang-format
run: choco install llvm -y
shell: powershell
- name: Run clang-format check
run: |
echo Checking code formatting with clang-format...
clang-format --version
clang-format --dry-run --Werror --style=file source/*.c source/*.h source/ext/minhook/src/*.c source/ext/minhook/src/*.h source/ext/minhook/include/*.h
shell: bash