]> git.openstreetmap.org Git - nominatim.git/blob - .github/actions/build-nominatim/action.yml
actions: test import with installed version of Nominatim
[nominatim.git] / .github / actions / build-nominatim / action.yml
1 name: 'Build Nominatim'
2
3 runs:
4     using: "composite"
5
6     steps:
7         - name: Install prerequisits
8           run: |
9             sudo apt-get install -y -qq libboost-system-dev libboost-filesystem-dev libexpat1-dev zlib1g-dev libbz2-dev libpq-dev libproj-dev python3-psycopg2 python3-pyosmium python3-dotenv
10           shell: bash
11
12         - name: Download dependencies
13           run: |
14               if [ ! -f data/country_osm_grid.sql.gz ]; then
15                   wget --no-verbose -O data/country_osm_grid.sql.gz https://www.nominatim.org/data/country_grid.sql.gz
16               fi
17           shell: bash
18
19         - name: Configure
20           run: mkdir build && cd build && cmake ..
21           shell: bash
22
23         - name: Build
24           run: |
25               make -j2 all
26               sudo make install
27           shell: bash
28           working-directory: build