5
5
branches : [ master ]
6
6
pull_request :
7
7
8
- env :
9
- AREA : liechtenstein
10
-
11
8
jobs :
12
9
13
- Windows-Build :
14
- name : Windows (CMake)
15
- runs-on : windows-latest
16
-
17
- steps :
18
- - uses : actions/checkout@v2
19
-
20
- - name : Enable vcpkg cache
21
- uses : actions/cache@v2
22
- with :
23
- path : c:\vcpkg\installed
24
- key : windows-vcpkg-x64-0 # Increase the number whenever dependencies are modified
25
- restore-keys : windows-vcpkg-x64
26
-
27
- - name : Build dependencies
28
- run : |
29
- vcpkg install --triplet=x64-windows-static-md lua shapelib zlib protobuf[zlib] sqlite3 boost-program-options boost-filesystem boost-geometry boost-system boost-asio boost-interprocess boost-iostreams boost-sort rapidjson
30
-
31
- - name : Build tilemaker
32
- run : |
33
- mkdir ${{ github.workspace }}\build
34
- cd ${{ github.workspace }}\build && cmake -DTILEMAKER_BUILD_STATIC=ON -DVCPKG_TARGET_TRIPLET="x64-windows-static-md" -DCMAKE_TOOLCHAIN_FILE="c:\vcpkg\scripts\buildsystems\vcpkg.cmake" ..
35
- cd ${{ github.workspace }}\build && cmake --build . --config RelWithDebInfo
36
-
37
- - name : Build openmaptiles-compatible mbtiles files of Liechtenstein
38
- run : |
39
- Invoke-WebRequest -Uri http://download.geofabrik.de/europe/${{ env.AREA }}-latest.osm.pbf -OutFile ${{ env.AREA }}.osm.pbf
40
- ${{ github.workspace }}\build\RelWithDebInfo\tilemaker.exe ${{ env.AREA }}.osm.pbf --config=resources/config-openmaptiles.json --process=resources/process-openmaptiles.lua --output=${{ env.AREA }}.pmtiles --verbose
41
- ${{ github.workspace }}\build\RelWithDebInfo\tilemaker.exe ${{ env.AREA }}.osm.pbf --config=resources/config-openmaptiles.json --process=resources/process-openmaptiles.lua --output=${{ env.AREA }}.mbtiles --store osm_store --verbose
42
-
43
- - name : ' Upload compiled executable'
44
- uses : actions/upload-artifact@v4
45
- with :
46
- name : tilemaker-windows
47
- path : |
48
- ${{ github.workspace }}\resources
49
- ${{ github.workspace }}\build\RelWithDebInfo\tilemaker.exe
50
- ${{ github.workspace }}\build\RelWithDebInfo\*.pdb
51
-
52
10
unix-build :
53
11
strategy :
54
12
matrix :
@@ -83,27 +41,11 @@ jobs:
83
41
cmake --build .
84
42
strip tilemaker
85
43
86
- - name : Build openmaptiles-compatible mbtiles files of Liechtenstein
87
- run : |
88
- curl http://download.geofabrik.de/europe/${{ env.AREA }}-latest.osm.pbf -o ${{ env.AREA }}.osm.pbf
89
- ${{ github.workspace }}/build/${{ matrix.executable }} ${{ env.AREA }}.osm.pbf --config=resources/config-openmaptiles.json --process=resources/process-openmaptiles.lua --output=${{ env.AREA }}.pmtiles --verbose
90
- ${{ github.workspace }}/build/${{ matrix.executable }} ${{ env.AREA }}.osm.pbf --config=resources/config-openmaptiles.json --process=resources/process-openmaptiles.lua --output=${{ env.AREA }}.mbtiles --verbose --store /tmp/store
91
-
92
- - name : ' Upload compiled executable'
93
- uses : actions/upload-artifact@v4
94
- with :
95
- name : tilemaker-${{ matrix.os }}
96
- path : |
97
- ${{ github.workspace }}/resources
98
- ${{ github.workspace }}/build/${{ matrix.executable }}
99
-
100
44
unix-makefile-build :
101
45
strategy :
102
46
matrix :
103
47
include :
104
48
- os : ubuntu-22.04
105
- - os : macos-latest
106
- - os : macos-14
107
49
108
50
name : ${{ matrix.os }} (Makefile)
109
51
runs-on : ${{ matrix.os }}
@@ -127,29 +69,6 @@ jobs:
127
69
make -j4
128
70
make test
129
71
130
- - name : Build openmaptiles-compatible mbtiles files of Liechtenstein
131
- run : |
132
- curl http://download.geofabrik.de/europe/${{ env.AREA }}-latest.osm.pbf -o ${{ env.AREA }}.osm.pbf
133
- ./tilemaker ${{ env.AREA }}.osm.pbf --config=resources/config-openmaptiles.json --process=resources/process-openmaptiles.lua --output=${{ env.AREA }}.pmtiles --verbose
134
- ./tilemaker ${{ env.AREA }}.osm.pbf --config=resources/config-openmaptiles.json --process=resources/process-openmaptiles.lua --output=${{ env.AREA }}.mbtiles --verbose --store /tmp/store
135
-
136
-
137
- Github-Action :
138
- name : Generate mbtiles with Github Action
139
- runs-on : ubuntu-latest
140
-
141
- steps :
142
- - name : Check out repository
143
- uses : actions/checkout@v2
144
-
145
- - name : Download PBF file
146
- run : curl http://download.geofabrik.de/europe/${AREA}-latest.osm.pbf -o ${AREA}.osm.pbf
147
-
148
- - name : Build openmaptiles-compatible mbtiles files of given area
149
- uses : ./
150
- with :
151
- input : ${{ env.AREA }}.osm.pbf
152
- output : ${{ env.AREA }}.mbtiles
153
72
154
73
docker-build :
155
74
env :
0 commit comments