Skip to content

Commit b727fe5

Browse files
committed
simplify workflow
1 parent 3749f8e commit b727fe5

File tree

1 file changed

+0
-81
lines changed

1 file changed

+0
-81
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,8 @@ on:
55
branches: [ master ]
66
pull_request:
77

8-
env:
9-
AREA: liechtenstein
10-
118
jobs:
129

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-
5210
unix-build:
5311
strategy:
5412
matrix:
@@ -83,27 +41,11 @@ jobs:
8341
cmake --build .
8442
strip tilemaker
8543
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-
10044
unix-makefile-build:
10145
strategy:
10246
matrix:
10347
include:
10448
- os: ubuntu-22.04
105-
- os: macos-latest
106-
- os: macos-14
10749

10850
name: ${{ matrix.os }} (Makefile)
10951
runs-on: ${{ matrix.os }}
@@ -127,29 +69,6 @@ jobs:
12769
make -j4
12870
make test
12971
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
15372
15473
docker-build:
15574
env:

0 commit comments

Comments
 (0)