From dd7dc2be585468b67105f54b254a0982d746c8ae Mon Sep 17 00:00:00 2001 From: Valentin-Gabriel Radu Date: Fri, 5 Nov 2021 06:22:48 +0200 Subject: [PATCH] Collapsed some build steps (thanks @Speedy37) --- .github/workflows/build.yml | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b98f41e..3998a46 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,28 +32,14 @@ jobs: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - - name: Create funchook build directory + - name: Build funchook shell: powershell - working-directory: libs/funchook - run: | - New-Item build -ItemType Directory - - - name: Generate funchook build files - shell: cmd - working-directory: libs/funchook/build run: | + cd libs/funchook + md build + cd build cmake -G "Visual Studio 16 2019" -A x64 .. - - - name: Patch funchook to compile as /MT - shell: powershell - working-directory: libs/funchook/build - run: | - (Get-Content funchook-static.vcxproj) -replace 'MultiThreadedDLL', 'MultiThreaded' | Out-File -encoding ASCII funchook-static.vcxproj - - - name: Build funchook - shell: cmd - working-directory: libs/funchook/build - run: | + (gc .\funchook-static.vcxproj) -replace 'MultiThreadedDLL', 'MultiThreaded' | Out-File .\funchook-static.vcxproj cmake --build . --config Release - name: Build EP IA-32