-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.78 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
on:
push:
pull_request:
jobs:
build:
runs-on: windows-2022
strategy:
matrix:
arch: [ Win32 ]
build_type: [ Release ]
steps:
- name: Checkout
uses: actions/[email protected]
with:
submodules: recursive
- name: Configure
run: |
mkdir build
cd build
cmake -G "Visual Studio 17 2022" -A ${{matrix.arch}} ..
- name: Add older VC2022 redist workaround to safetyhook
shell: pwsh
run: |
(Get-Content build/_deps/safetyhook-build/safetyhook.vcxproj) -replace 'ZYCORE_STATIC_BUILD', '_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR;ZYCORE_STATIC_BUILD' | Set-Content build/_deps/safetyhook-build/safetyhook.vcxproj
(Get-Content build/_deps/zydis-build/Zydis.vcxproj) -replace 'ZYCORE_STATIC_BUILD', '_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR;ZYCORE_STATIC_BUILD' | Set-Content build/_deps/zydis-build/Zydis.vcxproj
(Get-Content build/_deps/zydis-build/zycore/Zycore.vcxproj) -replace 'ZYCORE_STATIC_BUILD', '_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR;ZYCORE_STATIC_BUILD' | Set-Content build/_deps/zydis-build/zycore/Zycore.vcxproj
- name: Build
run: |
cmake --build build --config ${{matrix.build_type}}
- name: Copy settings
shell: pwsh
run: |
cp OutRun2006Tweaks.ini build/bin/OutRun2006Tweaks.ini
- name: Download OR2006C2C
shell: pwsh
run: |
Invoke-WebRequest -Uri https://github.com/emoose/OutRun2006Tweaks/releases/download/v0.1/OR2006C2C.EXE -OutFile build/bin/OR2006C2C.exe
- name: Upload
uses: actions/[email protected]
with:
name: outrun2006tweaks-${{ github.sha }}
path: build/bin/