Skip to content

Commit 1e80648

Browse files
committed
test windows build
1 parent d29ae08 commit 1e80648

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Tests for Library on Windows
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
5+
cancel-in-progress: true
6+
7+
on: [push, pull_request]
8+
9+
env:
10+
COMPILER: cl
11+
12+
jobs:
13+
14+
Tests-Viewshed-library:
15+
16+
runs-on: windows-latest
17+
18+
steps:
19+
20+
- name: Setup Environment
21+
run: |
22+
choco install ninja cmake gdal -y
23+
choco install qt5 -y
24+
refreshenv
25+
26+
- uses: actions/checkout@v4
27+
with:
28+
submodules: true
29+
30+
- name: Clone Dependency Library
31+
uses: actions/checkout@v4
32+
with:
33+
repository: JanCaha/cpp-simplerasters
34+
path: simplerasters
35+
36+
- name: Build Dependency Library
37+
run: |
38+
mkdir simplerasters/build
39+
cmake -S simplerasters -B simplerasters/build -G Ninja -DCMAKE_BUILD_TYPE=Release
40+
cmake --build simplerasters/build --config Release
41+
cmake --install simplerasters/build --prefix "C:/simplerasters"
42+
43+
- name: Configure
44+
run: |
45+
mkdir build
46+
cmake -S . -B build -G Ninja ^
47+
-DCMAKE_CXX_COMPILER=${COMPILER} ^
48+
-DCMAKE_BUILD_TYPE=Release ^
49+
-DPACK_DEB:bool=off ^
50+
-DBUILD_DOCUMENTATION:bool=off ^
51+
-DBUILD_TESTS:bool=on ^
52+
-DCELL_EVENT_DATA_FLOAT:bool=on ^
53+
-DOUTPUT_RASTER_DATA_FLOAT:bool=on ^
54+
-DNEEDS_QT:bool=off ^
55+
-DCMAKE_PREFIX_PATH="C:/simplerasters"
56+
57+
- name: Build
58+
run: |
59+
cmake --build build --config Release --target library_viewshed
60+
61+
- name: Run Tests
62+
run: |
63+
cmake --build build --config Release --target build_tests
64+
cmake --build build --config Release --target run_tests

0 commit comments

Comments
 (0)