Skip to content

Commit 602e180

Browse files
authored
Merge pull request #581 from sdslabs/gen-cache
add support for VS 2022
2 parents 1fd7333 + bae05ca commit 602e180

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

.github/workflows/cpp.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,23 @@ name: C/C++ CI
33
on: [push]
44

55
jobs:
6-
build-windows:
6+
build-windows-22:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
matrix:
11+
os: [windows-2022]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: configure
17+
run: ./generate_cache.bat /22
18+
19+
- name: build
20+
run: ./build.bat
21+
22+
build-windows-19:
723

824
runs-on: ${{ matrix.os }}
925
strategy:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ Rootex is the direct successor of [Rubeus, our 2D Game Engine](https://github.co
6464

6565
Rootex runs only on Windows and there are no plans to port it to other platforms.
6666

67-
1. Install [Visual Studio 2019 or Visual Studio 2017](https://visualstudio.microsoft.com/vs/), [CMake build system](https://cmake.org/download/).
67+
1. Install [Visual Studio 2022 or Visual Studio 2019 or Visual Studio 2017](https://visualstudio.microsoft.com/vs/), [CMake build system](https://cmake.org/download/).
6868
2. Install Visual Studio Desktop C++ development pack (or anything similar, since C++ is no longer a default language since at least Visual Studio 19)
69-
3. Run `generate_cache.bat /19` for VS 2019 or `generate_cache.bat /17` for VS 2017.
69+
3. Run `generate_cache.bat /22` for VS 2022 or `generate_cache.bat /19` for VS 2019 or `generate_cache.bat /17` for VS 2017.
7070
4. Use `build.bat` to build Rootex.
7171

7272
Assets Workflow :

generate_cache.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
@echo off
22
set res=F
3+
if "%1"=="/22" set res=T
34
if "%1"=="/19" set res=T
45
if "%1"=="/17" set res=T
56
if "%res%"=="T" (
67
@echo on
78
mkdir build
89
cd build
910
del /F CMakeCache.txt
11+
if "%1"=="/22" (
12+
cmake .. -G "Visual Studio 17 2022" -A x64
13+
)
1014
if "%1"=="/19" (
1115
cmake .. -G "Visual Studio 16 2019" -A x64
1216
)

0 commit comments

Comments
 (0)