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
72 changes: 72 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: C/C++ CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
os: [windows-latest]
build_type: [Release]
runs-on: ${{ matrix.os }}
env:
BUILD_TYPE: ${{ matrix.build_type }}
CTEST_OUTPUT_ON_FAILURE: 1

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Config MSVC (Windows)
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1

- name: Install ninja (Windows)
if: runner.os == 'Windows'
run: choco install -y ninja

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.10.X'
cache: 'pip'
cache-dependency-path: '**/requirements.txt'

- name: Install python dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt

- name: Configure (Windows)
if: runner.os == 'Windows'
run: |
cmake -S . -B build -G Ninja `
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} `
-DBUILD_TESTING=ON `
-DBUILD_TESTS=ON `
-DPROXY_ENABLE_LOG=ON `
-DPROXY_LINK_MAP=ON `
-DBUILD_LOADER=ON

- name: Build
run: cmake --build build --config ${{ env.BUILD_TYPE }} -- -k 0

- name: Tests
working-directory: build
run: ctest -C ${{ env.BUILD_TYPE }}

- name: Upload build & tests logs
if: always()
uses: actions/upload-artifact@v4
with:
name: logs-${{ matrix.os }}-${{ env.BUILD_TYPE }}
path: |
build/Testing/Temporary/LastTest.log
build/CMakeFiles/CMakeOutput.log
build/CMakeFiles/CMakeError.log
if-no-files-found: ignore
2 changes: 1 addition & 1 deletion CMakeLists.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pefile
1 change: 0 additions & 1 deletion tools/gen_def.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from pathlib import Path
from typing import NamedTuple, Optional, List, Literal


import pefile

# ---------------------------
Expand Down
Loading