Skip to content

Commit

Permalink
GitHub Action : build funchook
Browse files Browse the repository at this point in the history
  • Loading branch information
Speedy37 authored Nov 4, 2021
1 parent 0543e67 commit 9b0b5c2
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>', '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>' | 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

0 comments on commit 9b0b5c2

Please sign in to comment.