diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index b05a9de14..13933f41b 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -2,15 +2,6 @@ name: MSBuild on: [push] -env: - # Path to the solution file relative to the root of the project. - SOLUTION_FILE_PATH: ExplorerPatcher.sln - - # Configuration type to build. - # You can convert this to a build matrix if you need coverage of multiple configuration types. - # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - BUILD_CONFIGURATION: Release - jobs: build: runs-on: windows-latest @@ -23,8 +14,18 @@ jobs: - name: Add MSBuild to PATH uses: microsoft/setup-msbuild@v1.0.2 - - name: Build + - name: Build funchook + working-directory: ${{env.GITHUB_WORKSPACE}}/libs/funchook + shell: powershell + run: | + md build + cd build + cmake -G "Visual Studio 16 2019" -A x64 .. + (gc .\funchook-static.vcxproj) -replace 'MultiThreadedDLL', 'MultiThreaded' | Out-File .\funchook-static.vcxproj + cmake --build . --config Release + + - name: Build ExplorerPatcher working-directory: ${{env.GITHUB_WORKSPACE}} # Add additional options to the MSBuild command line here (like platform or verbosity level). # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference - run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} + run: msbuild /m /p:Configuration=Release ExplorerPatcher.sln