forked from TanninOne/usvfs
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Build USVFS | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build-x64: | ||
name: Build USVFS x64 | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Install boost | ||
uses: MarkusJx/[email protected] | ||
id: install-boost | ||
with: | ||
boost_version: 1.84.0 | ||
platform_version: 2022 | ||
toolset: msvc | ||
- name: Dump GitHub context | ||
env: | ||
GITHUB_CONTEXT: ${{ toJson(github) }} | ||
run: echo "$GITHUB_CONTEXT" | ||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- 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=${{ steps.install-boost.outputs.BOOST_ROOT }}/include" ` | ||
"-property:RunCodeAnalysis=false" ` | ||
.\vsbuild\usvfs.sln | ||
build-x86: | ||
name: Build USVFS x86 | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Install boost | ||
uses: MarkusJx/[email protected] | ||
id: install-boost | ||
with: | ||
boost_version: 1.84.0 | ||
platform_version: 2022 | ||
toolset: msvc | ||
- name: Add msbuild to PATH | ||
uses: microsoft/setup-msbuild@v2 | ||
with: | ||
msbuild-architecture: x86 | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- 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=${{ steps.install-boost.outputs.BOOST_ROOT }}/include" ` | ||
"-property:RunCodeAnalysis=false" ` | ||
.\vsbuild\usvfs.sln |