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}}