From bf91aa50219328980dea751859756a4da01f007a Mon Sep 17 00:00:00 2001 From: "Joshua T. Fisher" Date: Tue, 27 Jan 2026 17:30:26 -0800 Subject: [PATCH 1/3] Make runtime optional, start a CI yml. --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ CMakeLists.txt | 8 +++++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..b8acbea --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: build + +on: [push, pull_request] + +jobs: + windows-msvc: + strategy: + fail-fast: false + matrix: + include: + - os: windows-latest + arch: x64 + target_arch: x86_64 + + name: windows-msvc-${{ matrix.target_arch }} + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - uses: lukka/get-cmake@latest + + - uses: TheMrMilchmann/setup-msvc-dev@v3 + with: + arch: ${{ matrix.arch }} + + - name: Build + shell: cmd + run: | + cmake -B build + cmake --build build --config Release \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 4741ff2..c857681 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,13 @@ project("PS2 Retro X") set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +option(PS2X_RUNTIME OFF) + add_subdirectory("ps2xRecomp") -add_subdirectory("ps2xRuntime") + +if (PS2X_RUNTIME) + add_subdirectory("ps2xRuntime") +endif() + add_subdirectory("ps2xAnalyzer") add_subdirectory("ps2xTest") From 3e19d84f3bc49f4f1ccbe049bc047e73feb14585 Mon Sep 17 00:00:00 2001 From: "Joshua T. Fisher" Date: Tue, 27 Jan 2026 17:48:15 -0800 Subject: [PATCH 2/3] Add test runner. --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b8acbea..342526c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,4 +29,10 @@ jobs: shell: cmd run: | cmake -B build - cmake --build build --config Release \ No newline at end of file + cmake --build build --config Release + + - name: Tests + shell: cmd + continue-on-error: true # When tests start passing, this line should be removed. + run: | + .\build\ps2xTest\Release\ps2x_tests.exe \ No newline at end of file From 1cf3a6af4ea11fc58851184474a205f6650d9f27 Mon Sep 17 00:00:00 2001 From: "Joshua T. Fisher" Date: Tue, 27 Jan 2026 18:03:25 -0800 Subject: [PATCH 3/3] Add ending newline. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 342526c..79acc17 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,4 +35,4 @@ jobs: shell: cmd continue-on-error: true # When tests start passing, this line should be removed. run: | - .\build\ps2xTest\Release\ps2x_tests.exe \ No newline at end of file + .\build\ps2xTest\Release\ps2x_tests.exe