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

on: [push, pull_request]

jobs:
Linux:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake libgl-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libwayland-dev libxkbcommon-dev
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build
run: |
cmake -B bin -DCMAKE_BUILD_TYPE=Release .
cmake --build bin --parallel 4

Windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build
run: |
cmake -B bin -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows -A x64 .
cmake --build bin --config Release --parallel 4

MacOS:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Build
run: |
cmake -B bin -DCMAKE_BUILD_TYPE=Release .
cmake --build bin --config Release --parallel 3
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 3.15)

project(LibOpenNFS VERSION 0.0.2 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)

file(GLOB CRP_LIB_SOURCES
lib/LibOpenNFS/lib/CrpLib/*.h
Expand Down
3 changes: 2 additions & 1 deletion Common/NFSVersion.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#pragma once

#include <string>
#include <magic_enum/magic_enum.hpp>

#include "../../lib/magic_enum/magic_enum.hpp"

enum class NFSVersion {
UNKNOWN,
Expand Down
Loading