Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
huxingyi committed Dec 16, 2022
1 parent e729f77 commit 7a29cf7
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
if ! git diff --ignore-space-at-eol --exit-code; then
exit 1
fi
build:
linux-build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
Expand All @@ -39,4 +39,27 @@ jobs:
run: |
cd ${GITHUB_WORKSPACE}/application
qmake
make -j`nproc`
make -j`nproc`
win32-msvc-build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Set up Visual Studio shell
uses: egor-tensin/vs-shell@v2
with:
arch: x64
- name: Install Qt
# Generated by https://ddalcino.github.io/aqt-list-server/
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==2.1.*'
version: '5.15.2'
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2019_64'
archives: 'qttools qtsvg qtimageformats qtbase opengl32sw'
- name: Build application
run: |
cd $env:GITHUB_WORKSPACE/application
qmake -spec win32-msvc
nmake -f Makefile.Release
1 change: 1 addition & 0 deletions dust3d/mesh/mesh_recombiner.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* SOFTWARE.
*/

#include <array>
#include <cmath>
#include <dust3d/base/position_key.h>
#include <dust3d/mesh/hole_wrapper.h>
Expand Down
1 change: 1 addition & 0 deletions dust3d/mesh/mesh_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* SOFTWARE.
*/

#include <array>
#include <dust3d/base/debug.h>
#include <dust3d/mesh/mesh_recombiner.h>
#include <dust3d/mesh/mesh_state.h>
Expand Down
1 change: 1 addition & 0 deletions dust3d/mesh/section_remesher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* SOFTWARE.
*/

#include <algorithm>
#include <dust3d/mesh/section_remesher.h>

namespace dust3d {
Expand Down

0 comments on commit 7a29cf7

Please sign in to comment.