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")