From 22494a8c947917f197774f0bce2b50b5a93fa5b1 Mon Sep 17 00:00:00 2001 From: joeyhodge <96703964+joeyhodge@users.noreply.github.com> Date: Sat, 12 Oct 2024 11:23:37 -0400 Subject: [PATCH] Create build-pr.yml --- .github/workflows/build-pr.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/build-pr.yml diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml new file mode 100644 index 000000000..0161853ab --- /dev/null +++ b/.github/workflows/build-pr.yml @@ -0,0 +1,29 @@ +name: Build PR +on: [pull_request, workflow_dispatch] +env: + BUILD_TYPE: Release +jobs: + build-pr: + runs-on: windows-latest + strategy: + matrix: + target: [RE2, RE2_TDB66, RE3, RE3_TDB67, RE4, RE7, RE7_TDB49, RE8, DMC5, MHRISE, SF6, DD2] + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Configure CMake + run: cmake -S ${{github.workspace}} -B ${{github.workspace}}/build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DDEVELOPER_MODE=ON + + - name: Build + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target ${{matrix.target}} + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: ${{matrix.target}} + path: ${{github.workspace}}/build/bin/${{matrix.target}}/dinput8.dll + if-no-files-found: error +