forked from valhalla/valhalla
-
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (48 loc) · 1.73 KB
/
mingw-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Valhalla MinGW Build
on: [pull_request]
jobs:
build:
name: MinGW64 build
runs-on: ubuntu-latest
container: fedora:rawhide
steps:
- name: Get dependencies
run: |
dnf install -y \
cmake \
gcc-c++ \
git \
make \
mingw64-curl \
mingw64-boost \
mingw64-protobuf \
mingw64-geos \
mingw64-gdal \
mingw64-python3 \
protobuf-compiler
- uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Configure and run build
run: |
mkdir build && cd build \
&& mingw64-cmake .. \
-DCMAKE_CROSS_COMPILING=1 \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_TOOLS=OFF \
-DENABLE_DATA_TOOLS=OFF \
-DENABLE_SERVICES=OFF \
-DENABLE_PYTHON_BINDINGS=ON \
-DENABLE_CCACHE=OFF \
-DENABLE_TESTS=OFF \
-DENABLE_GDAL=ON \
-DLOGGING_LEVEL=DEBUG \
-DBoost_PROGRAM_OPTIONS_LIBRARY=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libboost_program_options-mt-x64.dll.a \
-DPYTHON_EXECUTABLE=/usr/x86_64-w64-mingw32/bin/python3 \
-DPYTHON_LIBRARIES=/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libpython3.9.dll.a \
-DPYTHON_INCLUDE_DIRS=/usr/x86_64-w64-mingw32/sys-root/mingw/include/python3.9 \
&& mingw64-make -j$(nproc)