forked from TanninOne/usvfs
-
Notifications
You must be signed in to change notification settings - Fork 26
67 lines (63 loc) · 2.17 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Build USVFS
on:
push:
branches: master
pull_request:
types: [opened, synchronize, reopened]
env:
BOOST_PREBUILT_URL: "https://github.com/ModOrganizer2/mob/releases/download/2.5-dependencies/boost_prebuilt_1_85_0.7z"
jobs:
build-x64:
name: Build USVFS x64
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Download Boost prebuilt
run: Invoke-WebRequest -Uri $env:BOOST_PREBUILT_URL -OutputFile boost.7z
- name: Extract tgz
uses: edgarrc/action-7z@v1
with:
args: 7z x boost.7z -oboost
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build x64
run: |
msbuild -nologo `
-maxCpuCount "-property:UseMultiToolTask=true" "-property:EnforceProcessCountAcrossBuilds=true" `
"-property:Configuration=Release" `
"-property:PlatformToolset=v143" `
"-property:WindowsTargetPlatformVersion=10.0.22621.0" `
"-property:Platform=x64" `
"-property:BOOST_PATH=..\boost" `
"-property:RunCodeAnalysis=false" `
.\vsbuild\usvfs.sln
build-x86:
name: Build USVFS x86
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Download Boost prebuilt
run: Invoke-WebRequest -Uri ${env:BOOST_PREBUILT_URL} -OutputFile boost.7z
- name: Extract tgz
uses: edgarrc/action-7z@v1
with:
args: 7z x boost.7z -oboost
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x86
- name: Build x86
run: |
msbuild -nologo `
-maxCpuCount "-property:UseMultiToolTask=true" "-property:EnforceProcessCountAcrossBuilds=true" `
"-property:Configuration=Release" `
"-property:PlatformToolset=v143" `
"-property:WindowsTargetPlatformVersion=10.0.22621.0" `
"-property:Platform=x86" `
"-property:BOOST_PATH=..\boost" `
"-property:RunCodeAnalysis=false" `
.\vsbuild\usvfs.sln