Skip to content

Commit

Permalink
Update windows build script
Browse files Browse the repository at this point in the history
  • Loading branch information
g3force committed Jan 3, 2024
1 parent 67ecf5d commit bffe838
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: make build directory
run: mkdir '${{ github.workspace }}/build/'

- name: Install dependencies # saves / restores cache to avoid rebuilding dependencies
uses: lukka/run-vcpkg@v11
with:
setupOnly: false
vcpkgGitCommitId: 8eb57355a4ffb410a2e94c07b4dca2dffbee8e50
vcpkgDirectory: c:/vcpkg # folder must reside in c:\ otherwise qt wont install due to long path errors
vcpkgTriplet: x64-windows
vcpkgArguments: qt5 ode protobuf

- name: Run CMake and build
working-directory: ${{ github.workspace }}/build/
run: |
cmake -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake ..
cmake --build . --config Release
- name: Run CMake and run vcpkg to build packages
uses: lukka/run-cmake@v10
with:
buildPresetAdditionalArgs: "['--config Release']"
9 changes: 9 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "grsim",
"version-string": "0.0.1",
"dependencies": [
"qt5",
"ode",
"protobuf"
]
}

0 comments on commit bffe838

Please sign in to comment.