Skip to content

Commit

Permalink
Merge pull request #4 from RadWolfie/github-ci
Browse files Browse the repository at this point in the history
Add GitHub CI workflow
  • Loading branch information
ergo720 authored Mar 18, 2024
2 parents d730b00 + 748bced commit 9d46b0f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: GitHub CI

on:
workflow_dispatch:
push:
paths-ignore:
- '.github/*'
- '.github/*TEMPLATE/**'
branches:
- '**'
pull_request:
paths-ignore:
- '*.md'
- '.github/*'
- '.github/*TEMPLATE/**'
env:
is_pr: ${{ startsWith(github.ref, 'refs/pull/') }}
repo_default: 'ergo720/nboxkrnl'

jobs:
build:
name: ${{ matrix.platform }} (${{ matrix.arch }}, ${{ matrix.configuration }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
cmake-generator:
- -A Win32 # Visual Studio (latest IDE)
configuration: [Debug, Release]
include:
- cmake-generator: -A Win32
platform: Windows
os: windows-latest
arch: x86
cmake-build-param: -j $env:NUMBER_OF_PROCESSORS
folder: win
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Generate CMake Files
# NOTES:
# -Werror=dev is used to validate CMakeLists.txt for any faults.
# TODO: re-add -Werror=dev when submodule is updated to minimal requirement of CMake 3.5
run: cmake -B build ${{ matrix.cmake-generator }}
- name: Build
run: cmake --build build --config ${{ matrix.configuration }} ${{ matrix.cmake-build-param }}
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.4.3)
cmake_minimum_required(VERSION 3.5)
project(nboxkrnl)

if(NOT DEFINED CMAKE_RUNTIME_OUTPUT_DIRECTORY)
Expand Down

0 comments on commit 9d46b0f

Please sign in to comment.