-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
known broken: Integrate vcpkg to the .vcxproj.
- Loading branch information
Showing
8 changed files
with
210 additions
and
2,441 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,44 @@ | ||
name: Unit Tests / Required / Static / Windows | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
|
||
env: | ||
VCPKG_DISABLE_METRICS: 1 | ||
|
||
jobs: | ||
build: | ||
name: 'Server 2022' | ||
runs-on: windows-2022 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
build-type: | ||
- Release | ||
- Debug | ||
steps: | ||
- name: Checkout Anura | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
# We need the full history for the vcpkg integration to work | ||
fetch-depth: 0 | ||
submodules: true | ||
|
||
# Sets a cache up for vcpkg | ||
- name: Install vcpkg | ||
uses: lukka/run-vcpkg@abed23940f9d7bc267b0e1a21ee7b699a3794baa # v11.1 | ||
|
||
- name: Install MSBuild | ||
uses: microsoft/setup-msbuild@1ff57057b5cfdc39105cd07a01d78e9b0ea0c14c # v1.3.1 | ||
with: | ||
msbuild-architecture: x64 | ||
# Visual Studio 2022 | ||
vs-version: '17' | ||
|
||
# This also runs vcpkg as we have everything defined in the .vcxproj | ||
- name: Build Anura | ||
run: msbuild -m -p:Configuration="${{ matrix.build-type }}" windows/anura.sln | ||
|
||
- name: Run Unit Tests | ||
run: .\windows\x64\"${{ matrix.build-type }}"\anura.exe --tests |
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
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
# Building on Windows | ||
|
||
In order build Anura, you will need Visual Studio 2022 and [vcpkg](https://github.com/microsoft/vcpkg) installed. | ||
In order build Anura, you will need [Visual | ||
Studio](https://visualstudio.microsoft.com/downloads/) 2022. | ||
|
||
If you do not have vcpkg set up: | ||
- Clone the [vcpkg repo](https://github.com/microsoft/vcpkg) somewhere outside the anura folder. | ||
- Inside the vcpkg folder, run `bootstrap-vcpkg.bat`, then `vcpkg integrate install`. | ||
The solution and project wrap vcpkg for you and you should be simply able to | ||
"press play". | ||
|
||
Once vcpkg is integrated with Visual Studio: | ||
- Open `anura.sln` and build. The executable will be in `./$(Target)-$(Configuration)/` (`./x64-Release`, for example). | ||
An alternate route is to only grab the [build | ||
tools](https://visualstudio.microsoft.com/downloads/?q=build+tools#build-tools-for-visual-studio-2022) | ||
and to build on the command line with `msbuild`. See the | ||
[CI](https://github.com/anura-engine/anura/blob/trunk/.github/workflows/push-unit-tests-static-windows.yaml) | ||
definition for the current details. |
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
Oops, something went wrong.