From e7753427f513be13977a9469d0151d45cac20144 Mon Sep 17 00:00:00 2001 From: Tanner Vandewalle Date: Tue, 9 Jun 2026 17:24:31 -0700 Subject: [PATCH] Add PR Build GitHub Actions workflow Mirrors the D3D9On12 prBuild.yml pattern: windows-latest runner, CMake configure with USE_PIX=OFF and CMAKE_SYSTEM_VERSION pin, NuGet restore against the generated .sln, then cmake --build with RelWithDebInfo. Runs on every PR targeting master. --- .github/workflows/prBuild.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/prBuild.yml diff --git a/.github/workflows/prBuild.yml b/.github/workflows/prBuild.yml new file mode 100644 index 0000000..118290f --- /dev/null +++ b/.github/workflows/prBuild.yml @@ -0,0 +1,27 @@ +name: PR Build + +on: + pull_request: + branches: [ "master" ] + +env: + BUILD_TYPE: RelWithDebInfo + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v3 + - uses: NuGet/setup-nuget@v1.2.0 + with: + nuget-version: latest + + - name: Configure CMake + run: cmake -B ${{github.workspace}}/build -DUSE_PIX=OFF -DCMAKE_SYSTEM_VERSION="10.0.22621.0" + + - name: Nuget Restore + run: nuget restore ${{github.workspace}}/build/d3d12translationlayer.sln + + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}