Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 17 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
Checks: >
-*,
bugprone-*,
cert-*,
clang-analyzer-*,
misc-*,
performance-*,
portability-*,
readability-*,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling

CheckOptions:
- key: readability-identifier-naming.VariableCase
value: lower_case
- key: readability-identifier-naming.FunctionCase
value: lower_case
68 changes: 68 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Cross-Platform Build

on:
push:
branches: [ main, develop, 'copilot/**' ]
pull_request:
branches: [ main, develop ]

jobs:
build-linux:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake build-essential clang-tidy

- name: Configure CMake
run: |
mkdir build
cd build
cmake -DZLIB_BUILD_EXAMPLES=OFF ..

- name: Build
run: |
cd build
make

- name: Upload Linux build artifact
uses: actions/upload-artifact@v4
with:
name: duef-linux
path: build/duef

- name: Run static analysis
run: |
echo "Running static analysis..."
clang-tidy duef.c -- -I./zlib-1.3.1 -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS || true
echo "Static analysis completed."

build-windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Set up MSVC
uses: microsoft/setup-msbuild@v2

- name: Configure CMake
run: |
mkdir build
cd build
cmake -DZLIB_BUILD_EXAMPLES=OFF ..

- name: Build
run: |
cd build
cmake --build . --config Release

- name: Upload Windows build artifact
uses: actions/upload-artifact@v4
with:
name: duef-windows
path: build/Release/duef.exe
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ cmake_minimum_required(VERSION 3.29)
project(decompress-uecrash-file)

add_subdirectory(zlib-1.3.1)
add_executable(duef duef.c)
add_executable(duef
duef.c
duef_args.c
duef_logger.c
duef_file_ops.c
duef_types.c
duef_printing.c
)
add_definitions(-D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS)

target_include_directories(duef PUBLIC zlib-1.3.1)
Expand Down
Loading
Loading