Skip to content

Commit

Permalink
Add CI and checking of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Menooker committed Jun 14, 2024
1 parent 6b900bb commit b83acd4
Show file tree
Hide file tree
Showing 6 changed files with 290 additions and 98 deletions.
5 changes: 5 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

BasedOnStyle: LLVM
IndentWidth: 4
AlwaysBreakTemplateDeclarations : true
# BreakBeforeBraces: Allman
21 changes: 21 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: C/C++ CI

on:
push:
branches:
- master
pull_request:

jobs:
test-linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: make
working-directory: ./
run: mkdir build && cd build && cmake .. && cmake --build . --target hook-test --config Release -- -j
- name: test
working-directory: ./
run: ./build/hook-test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ include/*
hooktest
3rdparty/*
build/*
.vscode/*
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ include_directories(
add_library(${LIB_NAME} inline_hook.cpp)
target_link_libraries(${LIB_NAME} Zydis)
add_dependencies(${LIB_NAME} Zydis)
add_executable(hooker-test hooktest.cpp)
target_link_libraries(hooker-test ${LIB_NAME} Zydis)
add_executable(hook-test hooktest.cpp)
target_link_libraries(hook-test ${LIB_NAME} Zydis)
Loading

0 comments on commit b83acd4

Please sign in to comment.