forked from Ryan-rsm-McKenzie/CommonLibF4
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from qudix/dev
feat: add `REX` and upgrade to `c++23`
- Loading branch information
Showing
75 changed files
with
8,713 additions
and
1,010 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,37 +8,39 @@ on: | |
workflow_dispatch: | ||
|
||
env: | ||
BUILD_TYPE: Debug | ||
VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/vcpkg-cache | ||
|
||
jobs: | ||
windows: | ||
runs-on: windows-2022 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
build-type: | ||
- debug | ||
- release | ||
compiler: | ||
- msvc | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: main | ||
|
||
- name: Setup cmake | ||
uses: lukka/get-cmake@latest | ||
|
||
- name: Setup vcpkg | ||
run: | | ||
mkdir -p ${{ env.VCPKG_DEFAULT_BINARY_CACHE }} | ||
cd $env:VCPKG_INSTALLATION_ROOT | ||
./bootstrap-vcpkg.bat | ||
./vcpkg --version > ${{ github.workspace }}/vcpkg-version.txt | ||
- name: Setup msvc | ||
uses: ilammy/[email protected] | ||
|
||
- name: Cache vcpkg | ||
uses: actions/cache@v2 | ||
id: vcpkg-cache | ||
env: | ||
cache-name: vcpkg-cache | ||
- name: Setup vcpkg | ||
uses: friendlyanon/setup-vcpkg@v1 | ||
with: | ||
path: ${{ env.VCPKG_DEFAULT_BINARY_CACHE }}/* | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('main/**/vcpkg.json', 'vcpkg-version.txt') }} | ||
|
||
- name: Configure CMake | ||
working-directory: ${{ github.workspace }}/main | ||
run: cmake --preset vs2022-windows-vcpkg | ||
committish: 943c5ef1c8f6b5e6ced092b242c8299caae2ff01 | ||
|
||
- name: Build | ||
working-directory: ${{ github.workspace }}/main | ||
run: cmake --build build --config ${{ env.BUILD_TYPE }} | ||
uses: lukka/[email protected] | ||
with: | ||
cmakeListsTxtPath: ${{ github.workspace }}/main/CMakeLists.txt | ||
configurePreset: build-${{ matrix.build-type }}-${{ matrix.compiler }}-vcpkg | ||
buildPreset: ${{ matrix.build-type }}-${{ matrix.compiler }}-vcpkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,102 @@ | ||
{ | ||
"configurePresets": [ | ||
{ | ||
"binaryDir": "${sourceDir}/build", | ||
"name": "common", | ||
"hidden": true, | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": { | ||
"type": "STRING", | ||
"value": "Debug" | ||
} | ||
"CMAKE_CXX_FLAGS": "$env{PROJECT_PLATFORM_FLAGS} $env{PROJECT_TEXT_FLAGS} $env{PROJECT_COMPILER_FLAGS} $penv{CXX_FLAGS}", | ||
"CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL" | ||
}, | ||
"environment": { | ||
"PROJECT_ARCHITECTURE": "x64", | ||
"PROJECT_PLATFORM": "windows", | ||
"PROJECT_TEXT_FLAGS": "-DUNICODE -D_UNICODE" | ||
}, | ||
"errors": { | ||
"deprecated": true | ||
}, | ||
"hidden": true, | ||
"name": "cmake-dev", | ||
"warnings": { | ||
"deprecated": true, | ||
"dev": true | ||
}, | ||
"vendor": { | ||
"microsoft.com/VisualStudioSettings/CMake/1.0": { | ||
"intelliSenseMode": "$env{PROJECT_PLATFORM}-$env{PROJECT_COMPILER}-$env{PROJECT_ARCHITECTURE}", | ||
"enableMicrosoftCodeAnalysis": true, | ||
"enableClangTidyCodeAnalysis": true | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "buildtype-debug", | ||
"hidden": true, | ||
"cacheVariables": { | ||
"CMAKE_TOOLCHAIN_FILE": { | ||
"type": "STRING", | ||
"value": "$env{VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake" | ||
} | ||
}, | ||
"CMAKE_BUILD_TYPE": "Debug" | ||
} | ||
}, | ||
{ | ||
"name": "buildtype-release", | ||
"hidden": true, | ||
"name": "vcpkg" | ||
"cacheVariables": { | ||
"CMAKE_BUILD_TYPE": "RelWithDebInfo" | ||
} | ||
}, | ||
{ | ||
"name": "packaging-vcpkg", | ||
"hidden": true, | ||
"toolchainFile": "$env{VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake", | ||
"cacheVariables": { | ||
"CMAKE_EXE_LINKER_FLAGS_RELEASE": { | ||
"type": "STRING", | ||
"value": "/DEBUG:FASTLINK" | ||
}, | ||
"CMAKE_MSVC_RUNTIME_LIBRARY": { | ||
"type": "STRING", | ||
"value": "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL" | ||
}, | ||
"VCPKG_TARGET_TRIPLET": { | ||
"type": "STRING", | ||
"value": "x64-windows-static-md" | ||
} | ||
}, | ||
"VCPKG_HOST_TRIPLET": "$env{PROJECT_ARCHITECTURE}-$env{PROJECT_PLATFORM}-static-md", | ||
"VCPKG_TARGET_TRIPLET": "$env{PROJECT_ARCHITECTURE}-$env{PROJECT_PLATFORM}-static-md" | ||
} | ||
}, | ||
{ | ||
"name": "generator-ninja", | ||
"hidden": true, | ||
"name": "windows" | ||
"generator": "Ninja" | ||
}, | ||
{ | ||
"cacheVariables": { | ||
"CMAKE_CXX_FLAGS": "/EHsc /MP /W4 /WX /external:anglebrackets /external:W0" | ||
}, | ||
"generator": "Visual Studio 16 2019", | ||
"name": "compiler-msvc", | ||
"hidden": true, | ||
"environment": { | ||
"PROJECT_COMPILER_FLAGS": "/EHsc /MP /W4 /WX /external:W0 /bigobj", | ||
"PROJECT_COMPILER": "msvc" | ||
} | ||
}, | ||
{ | ||
"name": "build-debug-msvc-vcpkg", | ||
"inherits": [ | ||
"cmake-dev", | ||
"vcpkg", | ||
"windows" | ||
"common", | ||
"buildtype-debug", | ||
"packaging-vcpkg", | ||
"generator-ninja", | ||
"compiler-msvc" | ||
], | ||
"name": "vs2019-windows-vcpkg" | ||
"binaryDir": "${sourceDir}/build/debug-msvc-vcpkg" | ||
}, | ||
{ | ||
"cacheVariables": { | ||
"CMAKE_CXX_FLAGS": "/EHsc /MP /W4 /WX /external:W0" | ||
}, | ||
"generator": "Visual Studio 17 2022", | ||
"name": "build-release-msvc-vcpkg", | ||
"inherits": [ | ||
"cmake-dev", | ||
"vcpkg", | ||
"windows" | ||
"common", | ||
"buildtype-release", | ||
"packaging-vcpkg", | ||
"generator-ninja", | ||
"compiler-msvc" | ||
], | ||
"name": "vs2022-windows-vcpkg", | ||
"toolset": "v143" | ||
"binaryDir": "${sourceDir}/build/release-msvc-vcpkg" | ||
} | ||
], | ||
"buildPresets": [ | ||
{ | ||
"name": "debug-msvc-vcpkg", | ||
"configurePreset": "build-debug-msvc-vcpkg", | ||
"displayName": "Debug (MSVC, Vcpkg)" | ||
}, | ||
{ | ||
"name": "release-msvc-vcpkg", | ||
"configurePreset": "build-release-msvc-vcpkg", | ||
"displayName": "Release (MSVC, Vcpkg)" | ||
} | ||
], | ||
"version": 2 | ||
"version": 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.