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

on:
push:
branches: [ main, master ]
paths-ignore:
- '.editorconfig'
- '.gitignore'
- '*.md'
pull_request:
branches: [ main, master ]
paths-ignore:
- '.editorconfig'
- '.gitignore'
- '*.md'
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: true
matrix:
os: [windows-2022]
config: [Debug, Release]
platform: [x64]

runs-on: ${{ matrix.os }}

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

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2

- name: Configure CMake
run: |
cmake -B build -A ${{ matrix.platform }} -DCMAKE_BUILD_TYPE=${{ matrix.config }}

- name: Build
run: |
cmake --build build --config ${{ matrix.config }} --parallel
43 changes: 43 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Build directories
build/
out/
.vs/

# CMake cache and generated files
CMakeCache.txt
CMakeFiles/
cmake_install.cmake
Makefile
*.vcxproj
*.vcxproj.filters
*.vcxproj.user
*.sln

# Dependencies
_deps/

# Visual Studio
*.suo
*.user
*.userosscache
*.sln.docstates
*.userprefs
bin/
obj/

# JetBrains IDEs
.idea/

# Temporary files
*.tmp
*.temp
*~

# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ if(${IS_TOPLEVEL_PROJECT})
file(GLOB ROOT_MD_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.md")
add_custom_target("docs" SOURCES ${ROOT_MD_FILES})

# Add tests
add_subdirectory("test")
# Add tests (can be disabled with -DKF_BUILD_TESTS=OFF)
option(KF_BUILD_TESTS "Build kf tests (requires WDK)" ON)
if(KF_BUILD_TESTS)
add_subdirectory("test")
endif()
endif()

# TODO: add install target
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# kf

[![CI](https://github.com/apriorit/kf/actions/workflows/ci.yml/badge.svg)](https://github.com/apriorit/kf/actions/workflows/ci.yml)

Kernel foundation library for Windows.

## Requirements
Expand Down