Skip to content

Commit

Permalink
Create build-pr.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyhodge authored Oct 12, 2024
1 parent 1801a1e commit 22494a8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 22494a8

Please sign in to comment.