Skip to content

Commit a87250b

Browse files
committed
CI: build on Windows
1 parent 60b1abf commit a87250b

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ env:
1313
BUILD_TYPE: Release
1414

1515
jobs:
16-
build:
16+
Linux:
1717
runs-on: ubuntu-20.04
1818
steps:
1919
- uses: actions/checkout@v2
20-
2120
- name: Install dependencies
2221
run: |
2322
sudo apt update
@@ -48,3 +47,25 @@ jobs:
4847
#cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DBUILD_EXAMPLE=true -DBUILD_TESTING=true
4948
#make -j2
5049
#make test
50+
Windows:
51+
runs-on: windows-latest
52+
steps:
53+
- uses: actions/checkout@v1
54+
with:
55+
fetch-depth: 1
56+
57+
- name: Install Qt
58+
uses: jurplel/install-qt-action@v2
59+
with:
60+
cached: ${{ steps.cache-qt.outputs.cache-hit }}
61+
arch: 'win64_mingw81'
62+
version: '5.15.2'
63+
64+
- name: Build
65+
shell: bash
66+
if: ${{ !steps.cache-qt.outputs.cache-hit }}
67+
run: |
68+
mkdir build
69+
cd build
70+
cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX="$Qt5_Dir" -DBUILD_SHARED_LIBS=ON ..
71+
mingw32-make -j2 VERBOSE=1

0 commit comments

Comments
 (0)