Skip to content

Commit dd7dc2b

Browse files
authored
Collapsed some build steps (thanks @Speedy37)
1 parent 050f10a commit dd7dc2b

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,28 +32,14 @@ jobs:
3232
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
3333
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
3434
35-
- name: Create funchook build directory
35+
- name: Build funchook
3636
shell: powershell
37-
working-directory: libs/funchook
38-
run: |
39-
New-Item build -ItemType Directory
40-
41-
- name: Generate funchook build files
42-
shell: cmd
43-
working-directory: libs/funchook/build
4437
run: |
38+
cd libs/funchook
39+
md build
40+
cd build
4541
cmake -G "Visual Studio 16 2019" -A x64 ..
46-
47-
- name: Patch funchook to compile as /MT
48-
shell: powershell
49-
working-directory: libs/funchook/build
50-
run: |
51-
(Get-Content funchook-static.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>', '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>' | Out-File -encoding ASCII funchook-static.vcxproj
52-
53-
- name: Build funchook
54-
shell: cmd
55-
working-directory: libs/funchook/build
56-
run: |
42+
(gc .\funchook-static.vcxproj) -replace '<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>', '<RuntimeLibrary>MultiThreaded</RuntimeLibrary>' | Out-File .\funchook-static.vcxproj
5743
cmake --build . --config Release
5844
5945
- name: Build EP IA-32

0 commit comments

Comments
 (0)